Merge pull request #137 from rhcarvalho/patch-1
Use jid.bare as a key instead of a JID instance.
This commit is contained in:
commit
a4b27ff031
1 changed files with 2 additions and 2 deletions
|
@ -152,11 +152,11 @@ class RosterNode(object):
|
||||||
'pending_out': pending_out,
|
'pending_out': pending_out,
|
||||||
'whitelisted': whitelisted,
|
'whitelisted': whitelisted,
|
||||||
'subscription': 'none'}
|
'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,
|
state=state, db=self.db,
|
||||||
roster=self)
|
roster=self)
|
||||||
if save:
|
if save:
|
||||||
self._jids[jid].save()
|
self._jids[key].save()
|
||||||
|
|
||||||
def subscribe(self, jid):
|
def subscribe(self, jid):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue