mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-06-05 21:49:22 +02:00
lets not use the ARCHIVED Threads field, not all devices have it
This commit is contained in:
@@ -175,8 +175,8 @@ fun Context.getConversations(): ArrayList<Conversation> {
|
|||||||
Threads.RECIPIENT_IDS
|
Threads.RECIPIENT_IDS
|
||||||
)
|
)
|
||||||
|
|
||||||
val selection = "${Threads.ARCHIVED} = ? AND ${Threads.MESSAGE_COUNT} > ?"
|
val selection = "${Threads.MESSAGE_COUNT} > ?"
|
||||||
val selectionArgs = arrayOf("0", "0")
|
val selectionArgs = arrayOf("0")
|
||||||
val conversations = ArrayList<Conversation>()
|
val conversations = ArrayList<Conversation>()
|
||||||
queryCursor(uri, projection, selection, selectionArgs, showErrors = true) { cursor ->
|
queryCursor(uri, projection, selection, selectionArgs, showErrors = true) { cursor ->
|
||||||
val id = cursor.getIntValue(Threads._ID)
|
val id = cursor.getIntValue(Threads._ID)
|
||||||
|
Reference in New Issue
Block a user