always disable autoaway when we go offline. Fixes #5218
This commit is contained in:
parent
abe9eb8b7d
commit
56e5629877
|
@ -1999,7 +1999,8 @@ class RosterWindow:
|
||||||
if status == 'online' and gajim.interface.sleeper.getState() != \
|
if status == 'online' and gajim.interface.sleeper.getState() != \
|
||||||
common.sleepy.STATE_UNKNOWN:
|
common.sleepy.STATE_UNKNOWN:
|
||||||
gajim.sleeper_state[account] = 'online'
|
gajim.sleeper_state[account] = 'online'
|
||||||
elif gajim.sleeper_state[account] not in ('autoaway', 'autoxa'):
|
elif gajim.sleeper_state[account] not in ('autoaway', 'autoxa') or \
|
||||||
|
status == 'offline':
|
||||||
gajim.sleeper_state[account] = 'off'
|
gajim.sleeper_state[account] = 'off'
|
||||||
|
|
||||||
if to:
|
if to:
|
||||||
|
|
Loading…
Reference in New Issue