diff --git a/src/controller/mainController.py b/src/controller/mainController.py index 221bd174..71239c7e 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -1238,6 +1238,7 @@ class Controller(object): elif buff == "direct_messages": sound_to_play = "dm_received.ogg" elif buff == "sent": sound_to_play = "tweet_send.ogg" elif buff == "followers" or buff == "following": sound_to_play = "update_followers.ogg" + elif buff == "notifications": sound_to_play = "new_event.ogg" elif "timeline" in buff: sound_to_play = "tweet_timeline.ogg" else: sound_to_play = None if sound_to_play != None and buff not in buffer.session.settings["other_buffers"]["muted_buffers"]: diff --git a/src/sessions/mastodon/session.py b/src/sessions/mastodon/session.py index 2d8c714f..b500d3c2 100644 --- a/src/sessions/mastodon/session.py +++ b/src/sessions/mastodon/session.py @@ -287,4 +287,8 @@ class Session(base.baseSession): num = self.order_buffer(b, [obj]) if num == 0: buffers.remove(b) - pub.sendMessage("mastodon.new_item", session_name=self.get_name(), item=obj, _buffers=buffers) \ No newline at end of file + pub.sendMessage("mastodon.new_item", session_name=self.get_name(), item=obj, _buffers=buffers) + # Now, add notification to its buffer. + num = self.order_buffer("notifications", [notification]) + if num > 0: + pub.sendMessage("mastodon.new_item", session_name=self.get_name(), item=notification, _buffers=["notifications"]) \ No newline at end of file