mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-25 14:57:20 +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) {
|
private Cursor getConversationList(String archived) {
|
||||||
SQLiteDatabase db = databaseHelper.getReadableDatabase();
|
SQLiteDatabase db = databaseHelper.getReadableDatabase();
|
||||||
String query = createQuery(ARCHIVED + " = ?", 0);
|
String localNumber = TextSecurePreferences.getLocalNumber(context);
|
||||||
Cursor cursor = db.rawQuery(query, new String[]{archived});
|
String query = createQuery(ARCHIVED + " = ? AND ("+TABLE_NAME+"."+ADDRESS+" != ? OR "+MESSAGE_COUNT+" != 0)", 0);
|
||||||
|
Cursor cursor = db.rawQuery(query, new String[]{archived, localNumber});
|
||||||
|
|
||||||
setNotifyConverationListListeners(cursor);
|
setNotifyConverationListListeners(cursor);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user