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