Zeroconf: Fix missing attrs
This commit is contained in:
parent
0963f44443
commit
e3f8f050c0
|
@ -64,12 +64,15 @@ class ConnectionHandlersZeroconf(ConnectionSocks5BytestreamZeroconf,
|
||||||
connection_handlers.ConnectionJingle.__init__(self)
|
connection_handlers.ConnectionJingle.__init__(self)
|
||||||
connection_handlers.ConnectionHandlersBase.__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
|
Called when we receive a message
|
||||||
"""
|
"""
|
||||||
log.info('Zeroconf MessageCB')
|
log.info('Zeroconf MessageCB')
|
||||||
|
|
||||||
|
# Dont trust from attr set by sender
|
||||||
|
stanza.setFrom(con._owner.to)
|
||||||
|
|
||||||
app.nec.push_incoming_event(NetworkEvent(
|
app.nec.push_incoming_event(NetworkEvent(
|
||||||
'raw-message-received',
|
'raw-message-received',
|
||||||
conn=self,
|
conn=self,
|
||||||
|
@ -110,6 +113,7 @@ class ConnectionHandlersZeroconf(ConnectionSocks5BytestreamZeroconf,
|
||||||
'jid': jid,
|
'jid': jid,
|
||||||
'resource': resource,
|
'resource': resource,
|
||||||
'unique_id': id_,
|
'unique_id': id_,
|
||||||
|
'message_id': properties.id,
|
||||||
'mtype': type_,
|
'mtype': type_,
|
||||||
'msgtxt': msgtxt,
|
'msgtxt': msgtxt,
|
||||||
'thread_id': thread_id,
|
'thread_id': thread_id,
|
||||||
|
|
Loading…
Reference in New Issue