mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 18:00:02 +01:00
Remove unbounded conversation list query.
This commit is contained in:
committed by
Alan Evans
parent
aa3eb78956
commit
7ef77bf16c
@@ -40,12 +40,6 @@ public class ShareReminder extends Reminder {
|
||||
return false;
|
||||
}
|
||||
|
||||
Cursor cursor = null;
|
||||
try {
|
||||
cursor = DatabaseFactory.getThreadDatabase(context).getConversationList();
|
||||
return cursor.getCount() >= 1;
|
||||
} finally {
|
||||
if (cursor != null) cursor.close();
|
||||
}
|
||||
return DatabaseFactory.getThreadDatabase(context).getUnarchivedConversationListCount() >= 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user