nk: call fire_up_unread_messages_events where it is really needed, fix coding standards
This commit is contained in:
parent
924528aadb
commit
b383a17cfd
1 changed files with 6 additions and 7 deletions
|
@ -885,7 +885,6 @@ class RosterWindow:
|
||||||
for acct in gajim.connections:
|
for acct in gajim.connections:
|
||||||
self.add_account_to_roster(acct)
|
self.add_account_to_roster(acct)
|
||||||
self.add_account_contacts(acct)
|
self.add_account_contacts(acct)
|
||||||
self.fire_up_unread_messages_events(acct)
|
|
||||||
|
|
||||||
def add_account_contacts(self, account):
|
def add_account_contacts(self, account):
|
||||||
'''adds contacts of group to roster treeview'''
|
'''adds contacts of group to roster treeview'''
|
||||||
|
@ -898,8 +897,8 @@ class RosterWindow:
|
||||||
results = gajim.logger.get_unread_msgs_for_jid(jid)
|
results = gajim.logger.get_unread_msgs_for_jid(jid)
|
||||||
for result in results:
|
for result in results:
|
||||||
tim = time.localtime(float(result[2]))
|
tim = time.localtime(float(result[2]))
|
||||||
self.on_message(jid, result[1], tim, account, msg_type= 'chat',
|
self.on_message(jid, result[1], tim, account, msg_type = 'chat',
|
||||||
msg_id=result[0])
|
msg_id = result[0])
|
||||||
|
|
||||||
def fill_contacts_and_groups_dicts(self, array, account):
|
def fill_contacts_and_groups_dicts(self, array, account):
|
||||||
'''fill gajim.contacts and gajim.groups'''
|
'''fill gajim.contacts and gajim.groups'''
|
||||||
|
|
Loading…
Add table
Reference in a new issue