Mark conversation unblocked right away when unblocking from qk client

This commit is contained in:
moezbhatti
2019-08-31 02:17:28 +02:00
parent f703d41712
commit f564a9c142
3 changed files with 23 additions and 2 deletions
@@ -46,6 +46,13 @@ class BlockingRepositoryImpl @Inject constructor() : BlockingRepository {
.findAllAsync()
}
override fun getBlockedNumber(id: Long): BlockedNumber? {
val realm = Realm.getDefaultInstance()
return realm.where(BlockedNumber::class.java)
.equalTo("id", id)
.findFirst()
}
override fun isBlocked(address: String): Boolean {
return Realm.getDefaultInstance().use { realm ->
realm.where(BlockedNumber::class.java)