From 16e258bdbc3d08c7c9cf84caae196dbfbf175b9a Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Wed, 9 Sep 2015 16:51:55 -0700 Subject: [PATCH] Only schedule a reminder if it's an alerting notification. // FREEBIE --- .../securesms/notifications/MessageNotifier.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java b/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java index d6a3e93b66..0e1150e7b9 100644 --- a/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java +++ b/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java @@ -174,7 +174,10 @@ public class MessageNotifier { } updateBadge(context, notificationState.getMessageCount()); - scheduleReminder(context, reminderCount); + + if (signal) { + scheduleReminder(context, reminderCount); + } } finally { if (telcoCursor != null) telcoCursor.close(); if (pushCursor != null) pushCursor.close();