From a67b74e7472af01a60ad6330c6046bc0cb5c3428 Mon Sep 17 00:00:00 2001 From: Sagar Date: Wed, 8 Jan 2025 09:55:39 +0530 Subject: [PATCH] Fixes #13857, #13859 - Update currently selected members count properly --- .../securesms/ContactSelectionListFragment.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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() {