From da0785913861dcd8a4579e19185f7e990c987d76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Sat, 2 Apr 2016 06:57:50 -0600 Subject: [PATCH] When session mute is enabled, you shouldn't hear tl's and lists' updates --- src/controller/mainController.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller/mainController.py b/src/controller/mainController.py index 9937b96a..b0f3ebf2 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -1275,7 +1275,7 @@ class Controller(object): buffer = self.search_buffer("%s-timeline" % (who,), user) if buffer == None: return play_sound = "tweet_timeline.ogg" - if "%s-timeline" % (who,) not in buffer.session.settings["other_buffers"]["muted_buffers"]: + if "%s-timeline" % (who,) not in buffer.session.settings["other_buffers"]["muted_buffers"] and buffer.session.settings["sound"]["session_mute"] == False: self.notify(buffer.session, play_sound=play_sound) output.speak(_(u"One tweet from %s") % (data["user"]["name"])) buffer.add_new_item(data) @@ -1284,7 +1284,7 @@ class Controller(object): buffer = self.search_buffer("%s" % (where,), user) if buffer == None: return play_sound = "list_tweet.ogg" - if "%s" % (where,) not in buffer.session.settings["other_buffers"]["muted_buffers"]: + if "%s" % (where,) not in buffer.session.settings["other_buffers"]["muted_buffers"] and buffer.session.settings["sound"]["session_mute"] == False: self.notify(buffer.session, play_sound=play_sound) output.speak(_(u"One tweet from %s") % (data["user"]["name"])) buffer.add_new_item(data)