remove our jid before we stringprep
This commit is contained in:
parent
099a4fc062
commit
97ed14b16b
|
@ -1257,15 +1257,15 @@ class Connection:
|
||||||
return
|
return
|
||||||
r = self.connection.getRoster().getRaw()
|
r = self.connection.getRoster().getRaw()
|
||||||
|
|
||||||
|
# Remove or jid
|
||||||
|
jid = gajim.get_jid_from_account(self.name)
|
||||||
|
if r.has_key(jid):
|
||||||
|
del r[jid]
|
||||||
|
|
||||||
roster = {}
|
roster = {}
|
||||||
for jid in r:
|
for jid in r:
|
||||||
roster[helpers.parse_jid(jid)] = r[jid]
|
roster[helpers.parse_jid(jid)] = r[jid]
|
||||||
|
|
||||||
jid = gajim.get_jid_from_account(self.name)
|
|
||||||
|
|
||||||
if roster.has_key(jid):
|
|
||||||
del roster[jid]
|
|
||||||
|
|
||||||
self.dispatch('ROSTER', roster)
|
self.dispatch('ROSTER', roster)
|
||||||
|
|
||||||
# continue connection
|
# continue connection
|
||||||
|
|
Loading…
Reference in New Issue