Skip to content
Snippets Groups Projects
Commit 4f85656b authored by sb's avatar sb
Browse files

fix previous commit, don't do nm stuff if account is not synchronized to global status

parent 0465e3dc
No related branches found
No related tags found
No related merge requests found
......@@ -17,12 +17,12 @@ from common import gajim
def device_now_active(self, *args):
for connection in gajim.connections.itervalues():
if gajim.config.get_per('accounts', connection.name, 'listen_to_network_manager'):
if gajim.config.get_per('accounts', connection.name, 'listen_to_network_manager') and gajim.config.get_per('accounts', connection.name, 'sync_with_global_status'):
connection.change_status('online', '')
def device_no_longer_active(self, *args):
for connection in gajim.connections.itervalues():
if gajim.config.get_per('accounts', connection.name, 'listen_to_network_manager'):
if gajim.config.get_per('accounts', connection.name, 'listen_to_network_manager') and gajim.config.get_per('accounts', connection.name, 'sync_with_global_status'):
connection.change_status('offline', '')
......
......@@ -3117,7 +3117,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
gajim.last_message_time[account][ctrl.get_full_jid()] = 0
win.set_active_tab(fjid, account)
if gajim.connections[account].is_zeroconf and \
gajim.connections[account].status in ('offline', 'invisible')
gajim.connections[account].status in ('offline', 'invisible'):
win.get_control(fjid, account).got_disconnected()
win.window.present()
......
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