don't set sleeper state to off when we send a presence while not online
This commit is contained in:
parent
cba44a43a1
commit
71293a38e6
1 changed files with 1 additions and 1 deletions
|
@ -2812,7 +2812,7 @@ 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'
|
||||||
else:
|
elif gajim.interface.sleeper.getState() == common.sleepy.STATE_UNKNOWN:
|
||||||
gajim.sleeper_state[account] = 'off'
|
gajim.sleeper_state[account] = 'off'
|
||||||
gajim.connections[account].change_status(status, txt, auto)
|
gajim.connections[account].change_status(status, txt, auto)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue