diff --git a/src/roster_window.py b/src/roster_window.py index eefa1b717..769693951 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2812,7 +2812,7 @@ class RosterWindow: if status == 'online' and gajim.interface.sleeper.getState() != \ common.sleepy.STATE_UNKNOWN: gajim.sleeper_state[account] = 'online' - else: + elif gajim.interface.sleeper.getState() == common.sleepy.STATE_UNKNOWN: gajim.sleeper_state[account] = 'off' gajim.connections[account].change_status(status, txt, auto)