Commit bded70eb authored by Daniel Brötzmann's avatar Daniel Brötzmann

Notifications: Do not play sound if message has more than one recipient

This prevents Gajim from playing the message_sent sound multiple times
parent b59d5434
......@@ -390,9 +390,10 @@ class Interface:
@staticmethod
def handle_event_msgsent(obj):
#('MSGSENT', account, (jid, msg))
# do not play sound when standalone chatstate message (eg no msg)
# Do not play sound if it is a standalone chatstate message (eg no msg)
# or if it is a message to more than one recipient
if obj.message and app.config.get_per('soundevents', 'message_sent',
'enabled'):
'enabled') and not len(obj.jid) > 1:
helpers.play_sound('message_sent')
@staticmethod
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment