[tpatnoe] don't add a to attribut to roster pushes if we don't get a from. Fixes #4978
This commit is contained in:
parent
2ae16645a3
commit
8ccba78a15
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue