request full roster if we have no contacts in our current database, in case we cleaned database but not roster_version option. Fixes #5729

This commit is contained in:
Yann Leboulanger 2010-05-02 19:33:16 +02:00
parent 8da03ee1d1
commit c6044ca60a
1 changed files with 5 additions and 0 deletions

View File

@ -643,6 +643,11 @@ class ConnectionVcard:
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, )