don't activate auto away if we connect as away or invisible or anything else than online
This commit is contained in:
parent
e82dc00a96
commit
5f48392890
|
@ -1313,7 +1313,8 @@ class Interface:
|
||||||
def handle_event_signed_in(self, account, empty):
|
def handle_event_signed_in(self, account, empty):
|
||||||
'''SIGNED_IN event is emitted when we sign in, so handle it'''
|
'''SIGNED_IN event is emitted when we sign in, so handle it'''
|
||||||
self.roster.actions_menu_needs_rebuild = True
|
self.roster.actions_menu_needs_rebuild = True
|
||||||
if gajim.interface.sleeper.getState() != common.sleepy.STATE_UNKNOWN:
|
if gajim.interface.sleeper.getState() != common.sleepy.STATE_UNKNOWN and \
|
||||||
|
gajim.connections[account].connected == 2: # we go online, not away
|
||||||
gajim.sleeper_state[account] = 'online'
|
gajim.sleeper_state[account] = 'online'
|
||||||
else:
|
else:
|
||||||
gajim.sleeper_state[account] = 'off'
|
gajim.sleeper_state[account] = 'off'
|
||||||
|
|
Loading…
Reference in New Issue