forked from upstream-mirrors/quik
changes to make new message notifications silent if any of the recipients of the new message are not in user's contacts. new setting on settings->notifications page
This commit is contained in:
@@ -82,6 +82,15 @@ class ContactRepositoryImpl @Inject constructor(
|
||||
}
|
||||
}
|
||||
|
||||
override fun getUnmanagedAllContacts(): List<Contact> {
|
||||
val realm = Realm.getDefaultInstance()
|
||||
|
||||
return realm
|
||||
.where(Contact::class.java)
|
||||
.findAll()
|
||||
.map { realm.copyFromRealm(it) }
|
||||
}
|
||||
|
||||
override fun getUnmanagedContacts(starred: Boolean): Observable<List<Contact>> {
|
||||
val realm = Realm.getDefaultInstance()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user