Ensure that saving a roster item includes the correct subscription value.

Fixes issue #118
This commit is contained in:
Lance Stout 2011-11-28 15:00:35 -08:00
parent 4eb7eeb40f
commit 68cf66a5fe

View file

@ -172,6 +172,7 @@ class RosterItem(object):
Save the item's state information to an external datastore, Save the item's state information to an external datastore,
if one has been provided. if one has been provided.
""" """
self['subscription'] = self._subscription()
if self.db: if self.db:
self.db.save(self.owner, self.jid, self.db.save(self.owner, self.jid,
self._state, self._db_state) self._state, self._db_state)