From e828381c9a9b5d34e3a6650f22487b6847ef1e91 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 13 Apr 2020 22:24:23 +0200 Subject: [PATCH] lets not use the ARCHIVED Threads field, not all devices have it --- .../com/simplemobiletools/smsmessenger/extensions/Context.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt index 9164fffb..760389ac 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt @@ -175,8 +175,8 @@ fun Context.getConversations(): ArrayList { Threads.RECIPIENT_IDS ) - val selection = "${Threads.ARCHIVED} = ? AND ${Threads.MESSAGE_COUNT} > ?" - val selectionArgs = arrayOf("0", "0") + val selection = "${Threads.MESSAGE_COUNT} > ?" + val selectionArgs = arrayOf("0") val conversations = ArrayList() queryCursor(uri, projection, selection, selectionArgs, showErrors = true) { cursor -> val id = cursor.getIntValue(Threads._ID)