fix a race condition in the main activity where selection was being cleared before block dialog had the list of selected convos

This commit is contained in:
gavine99
2025-03-28 18:16:37 +11:00
parent bbfa9ae4fd
commit 8f7b422494
@@ -423,7 +423,7 @@ class MainViewModel @Inject constructor(
view.optionsItemIntent
.filter { itemId -> itemId == R.id.block }
.withLatestFrom(view.conversationsSelectedIntent) { _, conversations ->
view.showBlockingDialog(conversations, true)
view.showBlockingDialog(conversations.toList(), true)
view.clearSelection()
}
.autoDisposable(view.scope())