mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-02-16 19:50:40 +01:00
do not show empty conversations on the main screen
This commit is contained in:
parent
e966b7bccd
commit
6d4f0bf7aa
@ -173,8 +173,8 @@ fun Context.getConversations(): ArrayList<Conversation> {
|
||||
Threads.RECIPIENT_IDS
|
||||
)
|
||||
|
||||
val selection = "${Threads.ARCHIVED} = ?"
|
||||
val selectionArgs = arrayOf("0")
|
||||
val selection = "${Threads.ARCHIVED} = ? AND ${Threads.MESSAGE_COUNT} > ?"
|
||||
val selectionArgs = arrayOf("0", "0")
|
||||
val conversations = ArrayList<Conversation>()
|
||||
queryCursor(uri, projection, selection, selectionArgs, showErrors = true) { cursor ->
|
||||
val id = cursor.getIntValue(Threads._ID)
|
||||
|
Loading…
x
Reference in New Issue
Block a user