forked from reya/coop-mobile
optimistic update message on send
This commit is contained in:
@@ -333,7 +333,12 @@ class NostrViewModel(
|
||||
to = room.members.toList(),
|
||||
content = message,
|
||||
subject = room.subject,
|
||||
replies = replies
|
||||
replies = replies,
|
||||
onNewMessage = { event ->
|
||||
viewModelScope.launch {
|
||||
_newEvents.emit(event)
|
||||
}
|
||||
}
|
||||
)
|
||||
} catch (e: Exception) {
|
||||
showError("Error: ${e.message}")
|
||||
|
||||
Reference in New Issue
Block a user