onCallSelectAnswer method
Implementation
Future<void> onCallSelectAnswer(
String roomId, String senderId, Map<String, dynamic> content) async {
if (senderId == client.userID) {
// Ignore messages to yourself.
return;
}
final String callId = content['call_id'];
Logs().d('SelectAnswer received for call ID $callId');
final call = calls[callId];
final String selectedPartyId = content['selected_party_id'];
if (call != null) {
if (call.room.id != roomId) {
Logs().w(
'Ignoring call select answer for room $roomId claiming to be for call in room ${call.room.id}');
return;
}
await call.onSelectAnswerReceived(selectedPartyId);
}
}