transferCredentials method

  1. @override
Future<void> transferCredentials(
  1. ChatId chatId,
  2. ChatItemId callId
)
override

Copies the ChatCallCredentials from the provided Chat and links them to the specified OngoingCall.

Implementation

@override
Future<void> transferCredentials(ChatId chatId, ChatItemId callId) async {
  Log.debug('transferCredentials($chatId, $callId)', '$runtimeType');

  final ChatCallCredentials? creds = await _chatCredentialsProvider.read(
    chatId,
  );
  if (creds != null) {
    _callCredentialsProvider.upsert(callId, creds.copyWith());
  }
}