diff --git a/app/src/main/java/org/thoughtcrime/securesms/ContactSelectionListFragment.java b/app/src/main/java/org/thoughtcrime/securesms/ContactSelectionListFragment.java index 1a9978b5ee0..dc15565e169 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/ContactSelectionListFragment.java +++ b/app/src/main/java/org/thoughtcrime/securesms/ContactSelectionListFragment.java @@ -446,6 +446,10 @@ public void onDestroyView() { } public int getSelectedMembersSize() { + if (contactSearchMediator == null) { + return 0; + } + return contactSearchMediator.getSelectedMembersSize(); } @@ -470,11 +474,7 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis } public int getSelectedContactsCount() { - if (contactSearchMediator == null) { - return 0; - } - - return contactSearchMediator.getSelectedContacts().size(); + return getSelectedMembersSize(); } public int getTotalMemberCount() {