we change the status only for account already connected and with sync_with_global_status option on (if one is connected) fix #406
This commit is contained in:
parent
5a083a94d0
commit
f076a17de1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue