Merge issues

This commit is contained in:
moezbhatti
2019-11-12 23:27:31 -05:00
committed by Moez Bhatti
parent bb816209ba
commit 29068f52c9
@@ -190,9 +190,9 @@ class ConversationRepositoryImpl @Inject constructor(
override fun getUnmanagedConversations(): Observable<List<Conversation>> {
val realm = Realm.getDefaultInstance()
return realm.where(Conversation::class.java)
.sort("date", Sort.DESCENDING)
.sort("lastMessage.date", Sort.DESCENDING)
.notEqualTo("id", 0L)
.greaterThan("count", 0)
.isNotNull("lastMessage")
.equalTo("archived", false)
.equalTo("blocked", false)
.isNotEmpty("recipients")