summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-11-28 15:00:35 -0800
committerLance Stout <lancestout@gmail.com>2011-11-28 15:00:35 -0800
commit68cf66a5fe9b594c32d2cf28c1ea0497387c9101 (patch)
treeabfdcf0de0ab1f3b03f261f9e821bcf48202888a
parent4eb7eeb40f14ae8026ff4a1f3f74f5d217acabbc (diff)
downloadslixmpp-68cf66a5fe9b594c32d2cf28c1ea0497387c9101.tar.gz
slixmpp-68cf66a5fe9b594c32d2cf28c1ea0497387c9101.tar.bz2
slixmpp-68cf66a5fe9b594c32d2cf28c1ea0497387c9101.tar.xz
slixmpp-68cf66a5fe9b594c32d2cf28c1ea0497387c9101.zip
Ensure that saving a roster item includes the correct subscription value.
Fixes issue #118
-rw-r--r--sleekxmpp/roster/item.py1
1 files changed, 1 insertions, 0 deletions
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)