mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 19:38:52 +01:00
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:
@@ -33,6 +33,8 @@ interface ContactRepository {
|
||||
|
||||
fun getUnmanagedContact(lookupKey: String): Contact?
|
||||
|
||||
fun getUnmanagedAllContacts(): List<Contact>
|
||||
|
||||
fun getUnmanagedContacts(starred: Boolean = false): Observable<List<Contact>>
|
||||
|
||||
fun getUnmanagedContactGroups(): Observable<List<ContactGroup>>
|
||||
|
||||
@@ -107,6 +107,7 @@ class Preferences @Inject constructor(
|
||||
val textSize = rxPrefs.getInteger("textSize", TEXT_SIZE_NORMAL)
|
||||
val blockingManager = rxPrefs.getInteger("blockingManager", BLOCKING_MANAGER_QKSMS)
|
||||
val drop = rxPrefs.getBoolean("drop", false)
|
||||
val silentNotContact = rxPrefs.getBoolean("silentNotContact", false)
|
||||
val notifAction1 = rxPrefs.getInteger("notifAction1", NOTIFICATION_ACTION_READ)
|
||||
val notifAction2 = rxPrefs.getInteger("notifAction2", NOTIFICATION_ACTION_REPLY)
|
||||
val notifAction3 = rxPrefs.getInteger("notifAction3", NOTIFICATION_ACTION_NONE)
|
||||
|
||||
Reference in New Issue
Block a user