aboutsummaryrefslogtreecommitdiff
path: root/ui/view-main.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/view-main.go')
-rw-r--r--ui/view-main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/view-main.go b/ui/view-main.go
index 30fa982..172e29f 100644
--- a/ui/view-main.go
+++ b/ui/view-main.go
@@ -431,7 +431,9 @@ func (view *MainView) NotifyMessage(room *rooms.Room, message ifc.Message, shoul
if shouldNotify && !recentlyFocused {
// Push rules say notify and the terminal is not focused, send desktop notification.
- shouldPlaySound := should.PlaySound && should.SoundName == "default"
+ shouldPlaySound := should.PlaySound &&
+ should.SoundName == "default" &&
+ view.config.NotifySound
sendNotification(room, message.NotificationSenderName(), message.NotificationContent(), should.Highlight, shouldPlaySound)
}