use helper function
This commit is contained in:
parent
0a3d26e5d4
commit
f2e214a033
|
@ -1553,9 +1553,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
||||||
groups.append(group.getData())
|
groups.append(group.getData())
|
||||||
self.dispatch('ROSTER_INFO', (jid, name, sub, ask, groups))
|
self.dispatch('ROSTER_INFO', (jid, name, sub, ask, groups))
|
||||||
if version:
|
if version:
|
||||||
account_jid = '%s@%s' % (
|
account_jid = gajim.get_jid_from_account(self.name)
|
||||||
gajim.config.get_per('accounts', self.name, 'name'),
|
|
||||||
gajim.config.get_per('accounts', self.name, 'hostname'))
|
|
||||||
gajim.logger.add_or_update_contact(account_jid, jid, name, sub,
|
gajim.logger.add_or_update_contact(account_jid, jid, name, sub,
|
||||||
groups)
|
groups)
|
||||||
gajim.config.set_per('accounts', self.name, 'roster_version',
|
gajim.config.set_per('accounts', self.name, 'roster_version',
|
||||||
|
|
Loading…
Reference in New Issue