Avoid playing new dm's sound for now

This commit is contained in:
Manuel Cortez 2022-11-20 15:01:15 -06:00
parent 8850e5fdde
commit 4a9098021f
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790

View File

@ -1253,7 +1253,7 @@ class Controller(object):
buffer.put_items_on_list(number_of_items)
if new_position > -1:
buffer.buffer.list.select_item(new_position)
if number_of_items > 0:
sound_to_play = "dm_received.ogg"
if "direct_messages" not in buffer.session.settings["other_buffers"]["muted_buffers"]:
self.notify(buffer.session, sound_to_play)
# if number_of_items > 0:
# sound_to_play = "dm_received.ogg"
# if "direct_messages" not in buffer.session.settings["other_buffers"]["muted_buffers"]:
# self.notify(buffer.session, sound_to_play)