Offer to migrate blocked numbers

This commit is contained in:
moezbhatti
2019-08-30 01:44:06 +02:00
parent b14cc53d7d
commit 03af81336c
7 changed files with 57 additions and 1 deletions
@@ -121,6 +121,13 @@ class ConversationRepositoryImpl @Inject constructor(
}
override fun getBlockedConversations(): RealmResults<Conversation> {
return Realm.getDefaultInstance()
.where(Conversation::class.java)
.equalTo("blocked", true)
.findAll()
}
override fun getBlockedConversationsAsync(): RealmResults<Conversation> {
return Realm.getDefaultInstance()
.where(Conversation::class.java)
.equalTo("blocked", true)