fix: add safeguard for message double send

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2023-09-17 05:20:00 +02:00
parent ba6edec5a5
commit cdc944a571
1 changed files with 1 additions and 0 deletions

View File

@ -177,6 +177,7 @@ class ChannelScreenViewModel : ViewModel() {
return
}
if (isSendingMessage) return
isSendingMessage = true
viewModelScope.launch {