requestEncrytionKey method

  1. @override
Future<void> requestEncrytionKey(
  1. GroupCallSession groupCall,
  2. List<CallParticipant> remoteParticipants
)
override

Implementation

@override
Future<void> requestEncrytionKey(
  GroupCallSession groupCall,
  List<CallParticipant> remoteParticipants,
) async {
  final Map<String, Object> data = {
    'conf_id': groupCall.groupCallId,
    'device_id': groupCall.client.deviceID!,
    'room_id': groupCall.room.id,
  };

  await _sendToDeviceEvent(
    groupCall,
    remoteParticipants,
    data,
    EventTypes.GroupCallMemberEncryptionKeysRequest,
  );
}