Skip to content
Snippets Groups Projects
Commit 8ccba78a authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[tpatnoe] don't add a to attribut to roster pushes if we don't get a from. Fixes #4978

parent 2ae16645
No related branches found
No related tags found
No related merge requests found
...@@ -1549,9 +1549,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco, ...@@ -1549,9 +1549,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
self.dispatch('ROSTER_INFO', (jid, name, sub, ask, groups)) self.dispatch('ROSTER_INFO', (jid, name, sub, ask, groups))
if not self.connection or self.connected < 2: if not self.connection or self.connected < 2:
raise common.xmpp.NodeProcessed raise common.xmpp.NodeProcessed
server = gajim.config.get_per('accounts', self.name, 'hostname')
reply = common.xmpp.Iq(typ='result', attrs={'id': iq_obj.getID()}, reply = common.xmpp.Iq(typ='result', attrs={'id': iq_obj.getID()},
to=server, frm=iq_obj.getTo(), xmlns=None) to=iq_obj.getFrom(), frm=iq_obj.getTo(), xmlns=None)
self.connection.send(reply) self.connection.send(reply)
raise common.xmpp.NodeProcessed raise common.xmpp.NodeProcessed
......
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