updateUserMapper method
Implementation
Future<ChatCallKitUserMapper?> updateUserMapper(int agoraUid) async {
String? userId = ChatClient.getInstance.currentUserId;
if (userId == null ||
ChatClient.getInstance.options?.appKey == null ||
_chat.model.curCall?.channel == null) return null;
ChatCallKitUserMapper? mapper =
await userMapperHandler?.call(_chat.model.curCall!.channel, agoraUid);
if (_chat.model.curCall != null &&
mapper != null &&
mapper.channel == _chat.model.curCall!.channel) {
if (_chat.model.curCall!.channel != mapper.channel) return null;
_chat.model.curCall!.allUserAccounts.addAll(mapper.infoMapper);
}
return mapper;
}