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:
gavine99
2025-01-28 15:22:05 +11:00
parent 77ce54fd1b
commit 76922b583e
9 changed files with 53 additions and 4 deletions
@@ -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()