Commit 56bb6ce2 authored by Daniel Brötzmann's avatar Daniel Brötzmann

Don’t show notifications for own muc messages on DND

parent 29ee43b4
Pipeline #6658 passed with stages
in 6 minutes and 57 seconds
......@@ -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
......
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