Commit 881238de authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist
Browse files

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

This prevents Gajim from playing the message_sent sound multiple times
parent 93057ab6
......@@ -361,10 +361,13 @@ def handle_event_msgerror(self, obj):
def handle_event_msgsent(obj):
#('MSGSENT', account, (jid, msg))
# do not play sound when standalone chatstate message (eg no msg)
# ('MSGSENT', account, (jid, 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',
if isinstance(obj.jid, list) and len(obj.jid) > 1:
Supports Markdown
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