From d5b7ff58e2f305e40f38d4aa47265c251a433e27 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Fri, 17 Feb 2017 19:20:11 -0800 Subject: [PATCH] Fix for last_seen crash when archive placeholder is visible // FREEBIE --- .../securesms/database/loaders/ConversationListLoader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/database/loaders/ConversationListLoader.java b/src/org/thoughtcrime/securesms/database/loaders/ConversationListLoader.java index 7837c719a3..d0ef1de46a 100644 --- a/src/org/thoughtcrime/securesms/database/loaders/ConversationListLoader.java +++ b/src/org/thoughtcrime/securesms/database/loaders/ConversationListLoader.java @@ -44,11 +44,11 @@ public class ConversationListLoader extends AbstractCursorLoader { ThreadDatabase.RECIPIENT_IDS, ThreadDatabase.SNIPPET, ThreadDatabase.READ, ThreadDatabase.TYPE, ThreadDatabase.SNIPPET_TYPE, ThreadDatabase.SNIPPET_URI, ThreadDatabase.ARCHIVED, ThreadDatabase.STATUS, ThreadDatabase.RECEIPT_COUNT, - ThreadDatabase.EXPIRES_IN}, 1); + ThreadDatabase.EXPIRES_IN, ThreadDatabase.LAST_SEEN}, 1); switchToArchiveCursor.addRow(new Object[] {-1L, System.currentTimeMillis(), archivedCount, "-1", null, 1, ThreadDatabase.DistributionTypes.ARCHIVE, - 0, null, 0, -1, 0, 0}); + 0, null, 0, -1, 0, 0, 0}); cursorList.add(switchToArchiveCursor); }