isValidMemEvent function
Implementation
bool isValidMemEvent(Map<String, Object?> event) {
if (event['call_id'] is String &&
event['device_id'] is String &&
event['expires_ts'] is num &&
event['foci_active'] is List) {
return true;
} else {
Logs()
.v('[VOIP] FamedlyCallMemberEvent ignoring unclean membership $event');
return false;
}
}