Commit fc8930aa authored by Philipp Hörist's avatar Philipp Hörist

Remove attention attribute from decrypted-message event

It's available via properties attribute
parent 2f8058b2
......@@ -391,14 +391,14 @@ class NotificationEvent(nec.NetworkIncomingEvent):
# we're online or chat
self.do_popup = True
if msg_obj.attention and not app.config.get(
if msg_obj.properties.attention and not app.config.get(
'ignore_incoming_attention'):
self.popup_timeout = 0
self.do_popup = True
else:
self.popup_timeout = app.config.get('notification_timeout')
if msg_obj.attention and not app.config.get(
if msg_obj.properties.attention and not app.config.get(
'ignore_incoming_attention') and app.config.get_per('soundevents',
'attention_received', 'enabled'):
self.sound_event = 'attention_received'
......
......@@ -192,7 +192,6 @@ class Message(BaseModule):
'timestamp': properties.timestamp,
'delayed': properties.user_timestamp is not None,
'gc_control': gc_control,
'attention': properties.attention,
'xhtml': xhtml,
'user_nick': properties.nickname,
'popup': False,
......
......@@ -106,7 +106,6 @@ class ConnectionHandlersZeroconf(connection_handlers.ConnectionHandlersBase):
'msgtxt': msgtxt,
'session': session,
'gc_control': None,
'attention': properties.attention,
'xhtml': parse_xhtml(properties),
'user_nick': properties.nickname,
'popup': 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