Philipp Hörist pushed to branch master at gajim / gajim
Commits:
881238de by Daniel Brötzmann at 2019-06-20T12:37:23Z
Notifications: Do not play sound if message has more than one recipient
This prevents Gajim from playing the message_sent sound multiple times
- - - - -
1 changed file:
- gajim/gui_interface.py
Changes:
=====================================
gajim/gui_interface.py
=====================================
@@ -361,10 +361,13 @@ class Interface:
@staticmethod
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',
'enabled'):
+ if isinstance(obj.jid, list) and len(obj.jid) > 1:
+ return
helpers.play_sound('message_sent')
@staticmethod
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/881238de9ed5332912f440032919cc5b5a8305d2
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/881238de9ed5332912f440032919cc5b5a8305d2
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits