Skip to content
Snippets Groups Projects
Commit e3f8f050 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Zeroconf: Fix missing attrs

parent 0963f444
No related branches found
No related tags found
No related merge requests found
......@@ -64,12 +64,15 @@ class ConnectionHandlersZeroconf(ConnectionSocks5BytestreamZeroconf,
connection_handlers.ConnectionJingle.__init__(self)
connection_handlers.ConnectionHandlersBase.__init__(self)
def _messageCB(self, _con, stanza, properties):
def _messageCB(self, con, stanza, properties):
"""
Called when we receive a message
"""
log.info('Zeroconf MessageCB')
# Dont trust from attr set by sender
stanza.setFrom(con._owner.to)
app.nec.push_incoming_event(NetworkEvent(
'raw-message-received',
conn=self,
......@@ -110,6 +113,7 @@ class ConnectionHandlersZeroconf(ConnectionSocks5BytestreamZeroconf,
'jid': jid,
'resource': resource,
'unique_id': id_,
'message_id': properties.id,
'mtype': type_,
'msgtxt': msgtxt,
'thread_id': thread_id,
......
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