mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
feat: filter out local number empty thread only
This commit is contained in:
parent
27958491c5
commit
784e217e91
@ -363,8 +363,9 @@ public class ThreadDatabase extends Database {
|
||||
|
||||
private Cursor getConversationList(String archived) {
|
||||
SQLiteDatabase db = databaseHelper.getReadableDatabase();
|
||||
String query = createQuery(ARCHIVED + " = ?", 0);
|
||||
Cursor cursor = db.rawQuery(query, new String[]{archived});
|
||||
String localNumber = TextSecurePreferences.getLocalNumber(context);
|
||||
String query = createQuery(ARCHIVED + " = ? AND ("+TABLE_NAME+"."+ADDRESS+" != ? OR "+MESSAGE_COUNT+" != 0)", 0);
|
||||
Cursor cursor = db.rawQuery(query, new String[]{archived, localNumber});
|
||||
|
||||
setNotifyConverationListListeners(cursor);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user