Skip to content

Commit

Permalink
Revert "Fix NPE when operating on multiple conversations in batch mode."
Browse files Browse the repository at this point in the history
This reverts commit fc51c49.
  • Loading branch information
cody-signal committed Aug 9, 2021
1 parent f6b2d3f commit 182c758
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.thoughtcrime.securesms.util.CachedInflater;
import org.thoughtcrime.securesms.util.ViewUtil;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
Expand Down Expand Up @@ -211,7 +210,7 @@ void toggleConversationInBatchSet(@NonNull Conversation conversation) {
}

Collection<Conversation> getBatchSelection() {
return new ArrayList<>(batchSet.values());
return batchSet.values();
}

@Override
Expand All @@ -234,7 +233,7 @@ public int getItemViewType(int position) {
}

@NonNull Set<Long> getBatchSelectionIds() {
return new HashSet<>(batchSet.keySet());
return batchSet.keySet();
}

void selectAllThreads() {
Expand Down

0 comments on commit 182c758

Please sign in to comment.