From 68cf66a5fe9b594c32d2cf28c1ea0497387c9101 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Mon, 28 Nov 2011 15:00:35 -0800 Subject: [PATCH] Ensure that saving a roster item includes the correct subscription value. Fixes issue #118 --- sleekxmpp/roster/item.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sleekxmpp/roster/item.py b/sleekxmpp/roster/item.py index 4f4663d3..6f956b31 100644 --- a/sleekxmpp/roster/item.py +++ b/sleekxmpp/roster/item.py @@ -172,6 +172,7 @@ class RosterItem(object): Save the item's state information to an external datastore, if one has been provided. """ + self['subscription'] = self._subscription() if self.db: self.db.save(self.owner, self.jid, self._state, self._db_state)