set sleeper_state to off when we manualy go away so that we desactivate auto away
This commit is contained in:
parent
630f7ad5c3
commit
70282f0bd5
|
@ -1316,7 +1316,7 @@ class Interface:
|
|||
if gajim.interface.sleeper.getState() != common.sleepy.STATE_UNKNOWN:
|
||||
gajim.sleeper_state[account] = 'online'
|
||||
else:
|
||||
gajim.sleeper_state[account] = 0
|
||||
gajim.sleeper_state[account] = 'off'
|
||||
invisible_show = gajim.SHOW_LIST.index('invisible')
|
||||
# We cannot join rooms if we are invisible
|
||||
if gajim.connections[account].connected == invisible_show:
|
||||
|
|
|
@ -1930,6 +1930,12 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
|
|||
gajim.connections[account].send_gc_status(gc_control.nick,
|
||||
gc_control.room_jid, status, txt)
|
||||
gajim.connections[account].change_status(status, txt, sync, auto)
|
||||
if gajim.connections[account].connected > 1:
|
||||
if status == 'online' and gajim.interface.sleeper.getState() != \
|
||||
common.sleepy.STATE_UNKNOWN:
|
||||
gajim.sleeper_state[account] = 'online'
|
||||
else:
|
||||
gajim.sleeper_state[account] = 'off'
|
||||
|
||||
def get_status_message(self, show):
|
||||
if (show == 'online' and not gajim.config.get('ask_online_status')) or \
|
||||
|
|
Loading…
Reference in New Issue