mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
Receive events as new flow in NewMessageViewModel
Co-authored-by: Fanchao Liu <273191+simophin@users.noreply.github.com>
This commit is contained in:
parent
81d5901e72
commit
f69b629053
@ -31,7 +31,7 @@ class NewMessageViewModel @Inject constructor(
|
|||||||
val state = _state.asStateFlow()
|
val state = _state.asStateFlow()
|
||||||
|
|
||||||
private val _event = Channel<Event>()
|
private val _event = Channel<Event>()
|
||||||
val event = _event.receiveAsFlow()
|
val event: Flow<Event> get() = _event.receiveAsFlow()
|
||||||
|
|
||||||
private val _qrErrors = Channel<String>()
|
private val _qrErrors = Channel<String>()
|
||||||
val qrErrors: Flow<String> = _qrErrors.receiveAsFlow()
|
val qrErrors: Flow<String> = _qrErrors.receiveAsFlow()
|
||||||
|
Loading…
Reference in New Issue
Block a user