changeset d5831792dc48 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=d5831792dc48
description: request full roster if we have no contacts in our current database, in case we cleaned database but not roster_version option. Fixes #5729
diffstat:
src/common/connection_handlers.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r a55ac27c3207 -r d5831792dc48 src/common/connection_handlers.py
--- a/src/common/connection_handlers.py Sun May 02 11:59:13 2010 +0200
+++ b/src/common/connection_handlers.py Sun May 02 19:33:16 2010 +0200
@@ -643,6 +643,11 @@
namespace=common.xmpp.NS_ROSTER_VER):
version = gajim.config.get_per('accounts', self.name,
'roster_version')
+ if version and not len(gajim.contacts.get_contacts_jid_list(
+ self.name)):
+ gajim.config.set_per('accounts', self.name,
+ 'roster_version', '')
+ version = None
iq_id = self.connection.initRoster(version=version)
self.awaiting_answers[iq_id] = (ROSTER_ARRIVED, )