respect in-chat-notification setting for outgoing messages

This commit is contained in:
B. Petersen
2020-05-25 15:12:34 +02:00
parent 144ebf33a9
commit 4c0076c2f5
@@ -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();
}
}