forked from upstream-mirrors/quik
Don't show conversations with no messages
This commit is contained in:
@@ -18,6 +18,7 @@ class MessageRepository(val context: Context) {
|
|||||||
fun getConversationsAsync(): RealmResults<Conversation> {
|
fun getConversationsAsync(): RealmResults<Conversation> {
|
||||||
return Realm.getDefaultInstance()
|
return Realm.getDefaultInstance()
|
||||||
.where(Conversation::class.java)
|
.where(Conversation::class.java)
|
||||||
|
.isNotEmpty("messages")
|
||||||
.findAllAsync()
|
.findAllAsync()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user