send xml status to groupchats AFTER changing our status, so when going from invisible to

online we reconnect to opened rooms.
This commit is contained in:
Jean-Marie Traissard 2007-04-01 12:28:03 +00:00
parent 069c0750a8
commit 79f92b9f6c
1 changed files with 8 additions and 8 deletions

View File

@ -2806,6 +2806,14 @@ class RosterWindow:
passphrase)
gajim.connections[account].gpg_passphrase(passphrase)
if gajim.account_is_connected(account):
if status == 'online' and gajim.interface.sleeper.getState() != \
common.sleepy.STATE_UNKNOWN:
gajim.sleeper_state[account] = 'online'
elif gajim.sleeper_state[account] not in ('autoaway', 'autoxa'):
gajim.sleeper_state[account] = 'off'
gajim.connections[account].change_status(status, txt, auto)
for gc_control in gajim.interface.msg_win_mgr.get_controls(
message_control.TYPE_GC):
if gc_control.account == account:
@ -2818,14 +2826,6 @@ class RosterWindow:
gajim.connections[account].join_gc(gc_control.nick,
gc_control.room_jid, None)
if gajim.account_is_connected(account):
if status == 'online' and gajim.interface.sleeper.getState() != \
common.sleepy.STATE_UNKNOWN:
gajim.sleeper_state[account] = 'online'
elif gajim.sleeper_state[account] not in ('autoaway', 'autoxa'):
gajim.sleeper_state[account] = 'off'
gajim.connections[account].change_status(status, txt, auto)
def get_status_message(self, show):
if show in gajim.config.get_per('defaultstatusmsg'):
if gajim.config.get_per('defaultstatusmsg', show, 'enabled'):