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) super.bindView(view)
conversation conversation
.map { conversation -> conversation.draft } .take(1) // only update saved draft to ui once
.distinctUntilChanged() .map { conversation -> conversation.draft }
.autoDisposable(view.scope()) .distinctUntilChanged()
.subscribe { draft -> view.setDraft(draft) } .autoDisposable(view.scope())
.subscribe { draft -> view.setDraft(draft) }
// Mark read // Mark read
view.menuItemIntent view.menuItemIntent