onAssertedIdentityReceived method

Future<void> onAssertedIdentityReceived(
  1. Room room,
  2. Map<String, dynamic> content
)

Implementation

Future<void> onAssertedIdentityReceived(
    Room room, Map<String, dynamic> content) async {
  final String callId = content['call_id'];
  Logs().d('Asserted identity received for call ID $callId');

  final call = calls[VoipId(roomId: room.id, callId: callId)];
  if (call != null) {
    if (content['asserted_identity'] == null) {
      Logs().d('asserted_identity is null ');
      return;
    }
    call.onAssertedIdentityReceived(
        AssertedIdentity.fromJson(content['asserted_identity']));
  }
}