mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 11:08:33 +00:00
Fix recent conversation query.
This commit is contained in:
parent
d37fafbfe7
commit
cfb22825f4
@ -376,7 +376,7 @@ public class ThreadDatabase extends Database {
|
|||||||
|
|
||||||
public Cursor getRecentConversationList(int limit, boolean includeInactiveGroups) {
|
public Cursor getRecentConversationList(int limit, boolean includeInactiveGroups) {
|
||||||
SQLiteDatabase db = databaseHelper.getReadableDatabase();
|
SQLiteDatabase db = databaseHelper.getReadableDatabase();
|
||||||
String query = !includeInactiveGroups ? MESSAGE_COUNT + " != 0 AND " + GroupDatabase.TABLE_NAME + "." + GroupDatabase.ACTIVE + " = 1"
|
String query = !includeInactiveGroups ? MESSAGE_COUNT + " != 0 AND (" + GroupDatabase.TABLE_NAME + "." + GroupDatabase.ACTIVE + " IS NULL OR " + GroupDatabase.TABLE_NAME + "." + GroupDatabase.ACTIVE + " = 1)"
|
||||||
: MESSAGE_COUNT + " != 0";
|
: MESSAGE_COUNT + " != 0";
|
||||||
return db.rawQuery(createQuery(query, limit), null);
|
return db.rawQuery(createQuery(query, limit), null);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user