mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-24 19:56:00 +00:00
Fix crash that occurs during thread trims by date.
This commit is contained in:
@@ -3840,7 +3840,7 @@ public class MessageTable extends DatabaseTable implements MessageTypes, Recipie
|
||||
String order = MessageTable.DATE_RECEIVED + " ASC";
|
||||
String selection = MessageTable.DATE_RECEIVED + " > " + date;
|
||||
|
||||
try (Cursor cursor = getReadableDatabase().query(TABLE_NAME, projection, selection, null, null, order, "1")) {
|
||||
try (Cursor cursor = getReadableDatabase().query(TABLE_NAME, projection, selection, null, null, null, order, "1")) {
|
||||
if (cursor != null && cursor.moveToFirst()) {
|
||||
return cursor.getLong(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user