diff --git a/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java b/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java index 2f0b08f882..c66ef99e55 100644 --- a/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java +++ b/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java @@ -124,10 +124,16 @@ public class MessageNotifier { } public static void updateNotification(Context context, MasterSecret masterSecret, long threadId) { - if (!TextSecurePreferences.isNotificationsEnabled(context)) { + Recipients recipients = DatabaseFactory.getThreadDatabase(context) + .getRecipientsForThreadId(threadId); + + if (!TextSecurePreferences.isNotificationsEnabled(context) || + (recipients != null && recipients.isMuted())) + { return; } + if (visibleThread == threadId) { ThreadDatabase threads = DatabaseFactory.getThreadDatabase(context); threads.setRead(threadId);