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:
parent
069c0750a8
commit
79f92b9f6c
|
@ -2806,6 +2806,14 @@ class RosterWindow:
|
||||||
passphrase)
|
passphrase)
|
||||||
gajim.connections[account].gpg_passphrase(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(
|
for gc_control in gajim.interface.msg_win_mgr.get_controls(
|
||||||
message_control.TYPE_GC):
|
message_control.TYPE_GC):
|
||||||
if gc_control.account == account:
|
if gc_control.account == account:
|
||||||
|
@ -2818,14 +2826,6 @@ class RosterWindow:
|
||||||
gajim.connections[account].join_gc(gc_control.nick,
|
gajim.connections[account].join_gc(gc_control.nick,
|
||||||
gc_control.room_jid, None)
|
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):
|
def get_status_message(self, show):
|
||||||
if show in gajim.config.get_per('defaultstatusmsg'):
|
if show in gajim.config.get_per('defaultstatusmsg'):
|
||||||
if gajim.config.get_per('defaultstatusmsg', show, 'enabled'):
|
if gajim.config.get_per('defaultstatusmsg', show, 'enabled'):
|
||||||
|
|
Loading…
Reference in New Issue