toggleHand method
override
Raises/lowers a hand of the authenticated MyUser in the specified ChatCall.
Implementation
@override
Future<void> toggleHand(ChatId chatId, bool raised) async {
Log.debug('toggleHand($chatId, $raised)', '$runtimeType');
try {
await _graphQlProvider.toggleChatCallHand(chatId, raised);
} on ToggleChatCallHandException catch (e) {
switch (e.code) {
case ToggleChatCallHandErrorCode.notCallMember:
case ToggleChatCallHandErrorCode.noCall:
case ToggleChatCallHandErrorCode.unknownChat:
WebUtils.removeCall(chatId);
remove(chatId);
break;
case ToggleChatCallHandErrorCode.artemisUnknown:
rethrow;
}
}
}