mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +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()
|
||||
|
||||
private val _event = Channel<Event>()
|
||||
val event = _event.receiveAsFlow()
|
||||
val event: Flow<Event> get() = _event.receiveAsFlow()
|
||||
|
||||
private val _qrErrors = Channel<String>()
|
||||
val qrErrors: Flow<String> = _qrErrors.receiveAsFlow()
|
||||
|
Loading…
x
Reference in New Issue
Block a user