mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 16:19:33 +01:00
Stop in-chat notification sounds if notifications are disabled.
This commit is contained in:
@@ -308,7 +308,8 @@ object NotificationFactory {
|
||||
}
|
||||
|
||||
private fun notifyInThread(context: Context, recipient: Recipient, lastAudibleNotification: Long) {
|
||||
if (!SignalStore.settings.isMessageNotificationsInChatSoundsEnabled ||
|
||||
if (!NotificationChannels.getInstance().areNotificationsEnabled() ||
|
||||
!SignalStore.settings.isMessageNotificationsInChatSoundsEnabled ||
|
||||
ServiceUtil.getAudioManager(context).ringerMode != AudioManager.RINGER_MODE_NORMAL ||
|
||||
(System.currentTimeMillis() - lastAudibleNotification) < DefaultMessageNotifier.MIN_AUDIBLE_PERIOD_MILLIS
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user