Don't show conversations with no messages

This commit is contained in:
Moez Bhatti
2017-09-22 19:58:07 -04:00
parent 17eef8f034
commit 7cd19d3572
@@ -18,6 +18,7 @@ class MessageRepository(val context: Context) {
fun getConversationsAsync(): RealmResults<Conversation> {
return Realm.getDefaultInstance()
.where(Conversation::class.java)
.isNotEmpty("messages")
.findAllAsync()
}