mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-30 19:19:55 +00:00
Use jid.bare as a key instead of a JID instance.
This commit is contained in:
parent
7b854a190e
commit
f49b6fa79f
1 changed files with 2 additions and 2 deletions
|
@ -152,11 +152,11 @@ class RosterNode(object):
|
|||
'pending_out': pending_out,
|
||||
'whitelisted': whitelisted,
|
||||
'subscription': 'none'}
|
||||
self._jids[jid] = RosterItem(self.xmpp, jid, self.jid,
|
||||
self._jids[key] = RosterItem(self.xmpp, jid, self.jid,
|
||||
state=state, db=self.db,
|
||||
roster=self)
|
||||
if save:
|
||||
self._jids[jid].save()
|
||||
self._jids[key].save()
|
||||
|
||||
def subscribe(self, jid):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue