toggleHand method
Raises/lowers a hand of the authenticated MyUser in the OngoingCall
identified by the given chatId
.
Implementation
Future<void> toggleHand(ChatId chatId, bool raised) async {
Log.debug('toggleHand($chatId, $raised)', '$runtimeType');
final Rx<OngoingCall>? call = _callRepository[chatId];
if (call != null) {
final ChatCallDeviceId? deviceId = call.value.deviceId;
if (deviceId != null) {
await _callRepository.toggleHand(chatId, deviceId, raised);
}
}
}