diff --git a/src/org/thoughtcrime/securesms/database/ThreadDatabase.java b/src/org/thoughtcrime/securesms/database/ThreadDatabase.java index 5ecda34829..cf157438b4 100644 --- a/src/org/thoughtcrime/securesms/database/ThreadDatabase.java +++ b/src/org/thoughtcrime/securesms/database/ThreadDatabase.java @@ -307,7 +307,7 @@ public class ThreadDatabase extends Database { } - public Cursor getFilteredConversationList(List
filter) { + public Cursor getFilteredConversationList(@Nullable List
filter) { if (filter == null || filter.size() == 0) return null; @@ -316,18 +316,27 @@ public class ThreadDatabase extends Database { List cursors = new LinkedList<>(); for (List
addresses : partitionedAddresses) { - String selection = ADDRESS + " = ?"; + String selection = TABLE_NAME + "." + ADDRESS + " = ?"; String[] selectionArgs = new String[addresses.size()]; for (int i=0;i 1 ? new MergeCursor(cursors.toArray(new Cursor[cursors.size()])) : cursors.get(0);