optimistic update message on send

This commit is contained in:
2026-05-15 09:41:50 +07:00
parent 620f7e0918
commit d56847f5d4
5 changed files with 84 additions and 25 deletions
@@ -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}")