mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 19:38:52 +01:00
Disable editing mode once a message is sent
This commit is contained in:
@@ -118,7 +118,7 @@ class ComposeViewModel(threadId: Long) : QkViewModel<ComposeView, ComposeState>(
|
||||
val threadId = conversation.id
|
||||
val address = conversation.contacts.first()?.address.orEmpty()
|
||||
sendMessage.execute(SendMessage.Params(threadId, address, body))
|
||||
newState { it.copy(draft = "", canSend = false) }
|
||||
newState { it.copy(editingMode = false, draft = "", canSend = false) }
|
||||
})
|
||||
.subscribe()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user