onUserLeaved method
void
onUserLeaved(
- int remoteUid
)
Implementation
void onUserLeaved(int remoteUid) {
if (_chat.model.curCall != null) {
String? userId = _chat.model.curCall?.allUserAccounts.remove(remoteUid);
for (var value in handlers) {
value.onUserLeaved.call(remoteUid, userId);
}
if (_chat.model.curCall!.callType != ChatCallKitCallType.multi) {
if (_chat.model.curCall != null) {
for (var value in handlers) {
value.onCallEnd.call(
_chat.model.curCall!.callId, ChatCallKitCallEndReason.hangup);
}
}
_chat.clearInfo();
}
}
}