mirror of
https://github.com/ouchadam/small-talk.git
synced 2025-02-16 12:10:45 +01:00
avoiding try emit
This commit is contained in:
parent
415ea4b150
commit
14d625765c
@ -126,7 +126,9 @@ internal class MessengerViewModel(
|
||||
}
|
||||
|
||||
fun startAttachment() {
|
||||
_events.tryEmit(MessengerEvent.SelectImageAttachment)
|
||||
viewModelScope.launch {
|
||||
_events.emit(MessengerEvent.SelectImageAttachment)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user