From f49b6fa79f1cda5d2fbf8c6329a58d22f88801c2 Mon Sep 17 00:00:00 2001 From: Rodolfo Henrique Carvalho Date: Mon, 16 Jan 2012 16:59:45 -0200 Subject: [PATCH] Use jid.bare as a key instead of a JID instance. --- sleekxmpp/roster/single.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sleekxmpp/roster/single.py b/sleekxmpp/roster/single.py index c2f8e763..8f7a496b 100644 --- a/sleekxmpp/roster/single.py +++ b/sleekxmpp/roster/single.py @@ -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): """