stringprep our jid to compare it with others
This commit is contained in:
parent
3c3796de33
commit
71271279d0
|
@ -1259,15 +1259,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]
|
||||||
|
|
||||||
|
# Remove or jid
|
||||||
|
our_jid = helpers.parse_jid(gajim.get_jid_from_account(self.name))
|
||||||
|
if roster.has_key(our_jid):
|
||||||
|
del roster[our_jid]
|
||||||
|
|
||||||
self.dispatch('ROSTER', roster)
|
self.dispatch('ROSTER', roster)
|
||||||
|
|
||||||
# continue connection
|
# continue connection
|
||||||
|
|
Loading…
Reference in New Issue