Disable editing mode once a message is sent

This commit is contained in:
Moez Bhatti
2017-11-29 08:30:53 -05:00
parent 8f4eb5b11a
commit 25e6ff912d
@@ -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()