don't redraw the whole roster when we connects to an account
This commit is contained in:
parent
57fad03435
commit
50407e5cca
|
@ -191,7 +191,7 @@ class Interface:
|
|||
def handle_event_roster(self, account, data):
|
||||
#('ROSTER', account, array)
|
||||
self.roster.fill_contacts_and_groups_dicts(data, account)
|
||||
self.roster.draw_roster()
|
||||
self.roster.add_account_contacts(account)
|
||||
if self.remote_ctrl:
|
||||
self.remote_ctrl.raise_signal('Roster', (account, data))
|
||||
|
||||
|
|
|
@ -738,8 +738,11 @@ class RosterWindow:
|
|||
self.tree.get_model().clear()
|
||||
for acct in gajim.connections:
|
||||
self.add_account_to_roster(acct)
|
||||
for jid in gajim.contacts.get_jid_list(acct):
|
||||
self.add_contact_to_roster(jid, acct)
|
||||
self.add_account_contacts(acct)
|
||||
|
||||
def add_account_contacts(self, account):
|
||||
for jid in gajim.contacts.get_jid_list(account):
|
||||
self.add_contact_to_roster(jid, account)
|
||||
|
||||
def fill_contacts_and_groups_dicts(self, array, account):
|
||||
'''fill gajim.contacts and gajim.groups'''
|
||||
|
|
Loading…
Reference in New Issue