forked from upstream-mirrors/quik
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user