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…
Reference in New Issue