From 4c0076c2f59ff5aa358e2aaa95f11eb904265c90 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Mon, 25 May 2020 15:12:34 +0200 Subject: [PATCH] respect in-chat-notification setting for outgoing messages --- .../securesms/notifications/NotificationCenter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/notifications/NotificationCenter.java b/src/org/thoughtcrime/securesms/notifications/NotificationCenter.java index 3e9503b3a..4eaa2ba85 100644 --- a/src/org/thoughtcrime/securesms/notifications/NotificationCenter.java +++ b/src/org/thoughtcrime/securesms/notifications/NotificationCenter.java @@ -498,7 +498,7 @@ public class NotificationCenter { } public void maybePlaySendSound(DcChat dcChat) { - if (Prefs.isNotificationsEnabled(context) && !dcChat.isMuted()) { + if (Prefs.isInChatNotifications(context) && Prefs.isNotificationsEnabled(context) && !dcChat.isMuted()) { InChatSounds.getInstance(context).playSendSound(); } }