mapToJoinGroupEvent static method
Implementation
static mapToJoinGroupEvent(data, bool includeRaw) {
final baseEventData = {
'origin': data['messageOrigin'],
'timestamp': data['timestamp'],
'chatId': data['chatId'],
'from': data['from'],
'to': data['to'],
'event': GroupEventType.joinGroup,
};
return includeRaw
? {
...baseEventData,
'raw': {'verificationProof': data['verificationProof']},
}
: baseEventData;
}