Skip to content
Snippets Groups Projects
Commit 56bb6ce2 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

Don’t show notifications for own muc messages on DND

parent 29ee43b4
No related branches found
No related tags found
No related merge requests found
......@@ -287,14 +287,15 @@ def handle_incoming_gc_msg_event(self, msg_obj):
nick = msg_obj.properties.muc_nickname
if nick != msg_obj.gc_control.nick:
self.do_sound = True
if sound == 'received':
self.sound_event = 'muc_message_received'
elif sound == 'highlight':
self.sound_event = 'muc_message_highlight'
else:
self.do_sound = False
if nick == msg_obj.gc_control.nick:
# A message from ourself
return
self.do_sound = True
if sound == 'received':
self.sound_event = 'muc_message_received'
elif sound == 'highlight':
self.sound_event = 'muc_message_highlight'
else:
self.do_sound = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment