avoiding try emit

This commit is contained in:
Adam Brown 2022-09-29 16:25:33 +01:00
parent 415ea4b150
commit 14d625765c
1 changed files with 3 additions and 1 deletions

View File

@ -126,7 +126,9 @@ internal class MessengerViewModel(
}
fun startAttachment() {
_events.tryEmit(MessengerEvent.SelectImageAttachment)
viewModelScope.launch {
_events.emit(MessengerEvent.SelectImageAttachment)
}
}
}