Skip to content
Snippets Groups Projects
Commit f076a17d authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

we change the status only for account already connected and with...

we change the status only for account already connected and with sync_with_global_status option on (if one is connected) fix #406
parent 5a083a94
No related branches found
No related tags found
No related merge requests found
......@@ -1158,11 +1158,17 @@ _('If "%s" accepts this request you will know his status.') %jid).get_response()
if message == -1:
self.update_status_comboxbox()
return
one_connected = False
for acct in accounts:
if gajim.connections[acct].connected > 1:
one_connected = True
break
for acct in accounts:
if not gajim.config.get_per('accounts', acct,
'sync_with_global_status'):
continue
self.send_status(acct, status, message)
if not one_connected or gajim.connections[acct].connected > 1:
self.send_status(acct, status, message)
def update_status_comboxbox(self):
#table to change index in plugin.connected to index in combobox
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment