Disallow opening archived chats if in multiselect.

This commit is contained in:
Alex Hart 2022-07-25 12:30:30 -03:00 committed by Cody Henthorne
parent 234f4b4b41
commit b0d75a8a5a

View file

@ -529,8 +529,10 @@ public class ConversationListFragment extends MainFragment implements ActionMode
@Override
public void onShowArchiveClick() {
NavHostFragment.findNavController(this)
.navigate(ConversationListFragmentDirections.actionConversationListFragmentToConversationListArchiveFragment());
if (viewModel.currentSelectedConversations().isEmpty()) {
NavHostFragment.findNavController(this)
.navigate(ConversationListFragmentDirections.actionConversationListFragmentToConversationListArchiveFragment());
}
}
@Override