* in order to permit roster loading at gajim startup we need to save all roster pushs (even if it's not for versioning)

This commit is contained in:
Anaël Verrier 2009-06-29 15:49:46 +02:00
parent ff2be61483
commit 5e4fb8fddb
1 changed files with 3 additions and 3 deletions

View File

@ -1562,10 +1562,10 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
for group in item.getTags('group'):
groups.append(group.getData())
self.dispatch('ROSTER_INFO', (jid, name, sub, ask, groups))
account_jid = gajim.get_jid_from_account(self.name)
gajim.logger.add_or_update_contact(account_jid, jid, name, sub, ask,
groups)
if version:
account_jid = gajim.get_jid_from_account(self.name)
gajim.logger.add_or_update_contact(account_jid, jid, name, sub,
ask, groups)
gajim.config.set_per('accounts', self.name, 'roster_version',
version)
if not self.connection or self.connected < 2: