mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-23 06:08:52 +01:00
@@ -279,7 +279,7 @@ class ComposeViewModel(intent: Intent) : QkViewModel<ComposeView, ComposeState>(
|
|||||||
val addresses = conversation.recipients.map { it.address }
|
val addresses = conversation.recipients.map { it.address }
|
||||||
sendMessage.execute(SendMessage.Params(threadId, addresses, body, attachments))
|
sendMessage.execute(SendMessage.Params(threadId, addresses, body, attachments))
|
||||||
view.setDraft("")
|
view.setDraft("")
|
||||||
newState { it.copy(attachments = ArrayList()) }
|
this.attachments.onNext(ArrayList())
|
||||||
})
|
})
|
||||||
.withLatestFrom(state, { _, state ->
|
.withLatestFrom(state, { _, state ->
|
||||||
if (state.editingMode) {
|
if (state.editingMode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user