kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix crash that occurs during thread trims by date.
rodzic
73e46053f0
commit
0a40432ed4
|
@ -3840,7 +3840,7 @@ public class MessageTable extends DatabaseTable implements MessageTypes, Recipie
|
||||||
String order = MessageTable.DATE_RECEIVED + " ASC";
|
String order = MessageTable.DATE_RECEIVED + " ASC";
|
||||||
String selection = MessageTable.DATE_RECEIVED + " > " + date;
|
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()) {
|
if (cursor != null && cursor.moveToFirst()) {
|
||||||
return cursor.getLong(0);
|
return cursor.getLong(0);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue