mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-24 10:51:27 +01:00
Disable Contact Join Notification via Action.
This commit is contained in:
committed by
Greyson Parrelli
parent
25c17082f2
commit
36d1e7c44a
@@ -492,6 +492,10 @@ public class TextSecurePreferences {
|
||||
return new NotificationPrivacyPreference(getStringPreference(context, NOTIFICATION_PRIVACY_PREF, "all"));
|
||||
}
|
||||
|
||||
public static void setNewContactsNotificationEnabled(Context context, boolean isEnabled) {
|
||||
setBooleanPreference(context, NEW_CONTACTS_NOTIFICATIONS, isEnabled);
|
||||
}
|
||||
|
||||
public static boolean isNewContactsNotificationEnabled(Context context) {
|
||||
return getBooleanPreference(context, NEW_CONTACTS_NOTIFICATIONS, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user