fix circular update of message and db conversation in qkreply causing cursor return to start of edit box

This commit is contained in:
gavine99
2025-03-06 20:03:15 +11:00
parent 4cbf3bdc4d
commit ea82e167ec
@@ -104,10 +104,11 @@ class QkReplyViewModel @Inject constructor(
super.bindView(view)
conversation
.map { conversation -> conversation.draft }
.distinctUntilChanged()
.autoDisposable(view.scope())
.subscribe { draft -> view.setDraft(draft) }
.take(1) // only update saved draft to ui once
.map { conversation -> conversation.draft }
.distinctUntilChanged()
.autoDisposable(view.scope())
.subscribe { draft -> view.setDraft(draft) }
// Mark read
view.menuItemIntent