lets not use the ARCHIVED Threads field, not all devices have it

This commit is contained in:
tibbi 2020-04-13 22:24:23 +02:00
parent eeb458b9b5
commit e828381c9a
1 changed files with 2 additions and 2 deletions

View File

@ -175,8 +175,8 @@ fun Context.getConversations(): ArrayList<Conversation> {
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<Conversation>()
queryCursor(uri, projection, selection, selectionArgs, showErrors = true) { cursor ->
val id = cursor.getIntValue(Threads._ID)