From f61b5567900b5a325d13630602262a15a1987a1d Mon Sep 17 00:00:00 2001 From: jubb Date: Tue, 23 Feb 2021 14:41:21 +1100 Subject: [PATCH] fix: message ordering using NORMALIZED_DATE_SENT instead of NORMALIZED_DATE_RECEIVED --- .../org/thoughtcrime/securesms/database/MmsSmsDatabase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/database/MmsSmsDatabase.java b/app/src/main/java/org/thoughtcrime/securesms/database/MmsSmsDatabase.java index 2deacb7fa7..b2c015263c 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/database/MmsSmsDatabase.java +++ b/app/src/main/java/org/thoughtcrime/securesms/database/MmsSmsDatabase.java @@ -122,7 +122,7 @@ public class MmsSmsDatabase extends Database { } public Cursor getConversation(long threadId, long offset, long limit) { - String order = MmsSmsColumns.NORMALIZED_DATE_RECEIVED + " DESC"; + String order = MmsSmsColumns.NORMALIZED_DATE_SENT + " DESC"; String selection = MmsSmsColumns.THREAD_ID + " = " + threadId; String limitStr = limit > 0 || offset > 0 ? offset + ", " + limit : null;