handleToField static method
dynamic
handleToField(
- dynamic data
Implementation
static handleToField(dynamic data) {
switch (data['event']) {
case ProposedEventNames.LeaveGroup:
case ProposedEventNames.JoinGroup:
data['to'] = null;
break;
case ProposedEventNames.Accept:
case ProposedEventNames.Reject:
if (data['meta']?['group'] != null) {
data['to'] = null;
}
break;
default:
break;
}
}