mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
Fix for notification preference regression
This commit is contained in:
parent
1aa84b145f
commit
01658cc454
1 changed files with 12 additions and 0 deletions
|
@ -97,10 +97,22 @@ public class MessageNotifier {
|
|||
|
||||
|
||||
public static void updateNotification(Context context, MasterSecret masterSecret) {
|
||||
if (!PreferenceManager.getDefaultSharedPreferences(context)
|
||||
.getBoolean(ApplicationPreferencesActivity.NOTIFICATION_PREF, true))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
updateNotification(context, masterSecret, false);
|
||||
}
|
||||
|
||||
public static void updateNotification(Context context, MasterSecret masterSecret, long threadId) {
|
||||
if (!PreferenceManager.getDefaultSharedPreferences(context)
|
||||
.getBoolean(ApplicationPreferencesActivity.NOTIFICATION_PREF, true))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (visibleThread == threadId) {
|
||||
DatabaseFactory.getThreadDatabase(context).setRead(threadId);
|
||||
sendInThreadNotification(context);
|
||||
|
|
Loading…
Reference in a new issue