check if no message came from a privately stored contact in Simple Contacts

This commit is contained in:
tibbi 2020-05-18 23:22:27 +02:00
parent 910aa365ac
commit db90f0f08c
3 changed files with 13 additions and 1 deletions

View file

@ -186,6 +186,7 @@ fun Context.getConversations(): ArrayList<Conversation> {
val selection = "${Threads.MESSAGE_COUNT} > ?"
val selectionArgs = arrayOf("0")
val sortOrder = "${Threads.DATE} DESC"
val conversations = ArrayList<Conversation>()
queryCursor(uri, projection, selection, selectionArgs, sortOrder, true) { cursor ->
val id = cursor.getIntValue(Threads._ID)