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

Remove unused attributes

parent 6b723a89
......@@ -233,7 +233,6 @@ class MAM(BaseModule):
'account': self._account,
'additional_data': additional_data,
'timestamp': properties.mam.timestamp,
'self_message': properties.is_self_message,
'groupchat': groupchat,
'stanza_id': stanza_id,
'origin_id': message_id,
......
......@@ -177,7 +177,6 @@ class Message(BaseModule):
'conn': self._con,
'stanza': stanza,
'account': self._account,
'id_': properties.id,
'additional_data': additional_data,
'forwarded': properties.is_carbon_message,
'sent': properties.is_carbon_message and properties.carbon.is_sent,
......@@ -191,7 +190,6 @@ class Message(BaseModule):
'msgtxt': msgtxt,
'thread_id': thread_id,
'session': session,
'self_message': properties.is_self_message,
'timestamp': properties.timestamp,
'delayed': properties.user_timestamp is not None,
'gc_control': gc_control,
......
......@@ -39,7 +39,7 @@ class UserNickname(BaseModule):
@event_node(nbxmpp.NS_NICK)
def _nickname_received(self, _con, _stanza, properties):
nick = properties.pubsub_event.data
if properties.self_message:
if properties.is_self_message:
if nick is None:
nick = app.config.get_per('accounts', self._account, 'name')
app.nicks[self._account] = nick
......
......@@ -94,7 +94,6 @@ class ConnectionHandlersZeroconf(connection_handlers.ConnectionHandlersBase):
'conn': self,
'stanza': stanza,
'account': self.name,
'id_': id_,
'additional_data': additional_data,
'forwarded': False,
'sent': False,
......@@ -108,7 +107,6 @@ class ConnectionHandlersZeroconf(connection_handlers.ConnectionHandlersBase):
'msgtxt': msgtxt,
'thread_id': thread_id,
'session': session,
'self_message': False,
'gc_control': None,
'attention': properties.attention,
'xhtml': parse_xhtml(properties),
......
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