From 8d7078f96f754d336588d1241a6327a72ce58e41 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Wed, 23 Oct 2024 20:21:56 +0200 Subject: [PATCH] fix playing inChatSounds --- .../securesms/notifications/NotificationCenter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/thoughtcrime/securesms/notifications/NotificationCenter.java b/src/main/java/org/thoughtcrime/securesms/notifications/NotificationCenter.java index f6e810bc7..c07889f6a 100644 --- a/src/main/java/org/thoughtcrime/securesms/notifications/NotificationCenter.java +++ b/src/main/java/org/thoughtcrime/securesms/notifications/NotificationCenter.java @@ -386,8 +386,8 @@ public class NotificationCenter { return; } - if (playInChatSound && Util.equals(visibleChat, chatData)) { - if (Prefs.isInChatNotifications(context)) { + if (Util.equals(visibleChat, chatData)) { + if (playInChatSound && Prefs.isInChatNotifications(context)) { InChatSounds.getInstance(context).playIncomingSound(); } return;