when an account change status, send presence to gc of ONLY this account. Fixes #1380

This commit is contained in:
Yann Leboulanger 2006-01-12 20:54:46 +00:00
parent d52bf25ba2
commit dceac477d6
1 changed files with 5 additions and 3 deletions

View File

@ -1534,9 +1534,11 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
passphrase)
gajim.connections[account].gpg_passphrase(passphrase)
for gc_control in gajim.interface.msg_win_mgr.get_controls(message_control.TYPE_GC):
gajim.connections[account].send_gc_status(gc_control.nick, gc_control.room_jid,
status, txt)
for gc_control in gajim.interface.msg_win_mgr.get_controls(
message_control.TYPE_GC):
if gc_control.account == account:
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 status == 'online' and gajim.interface.sleeper.getState() != \
common.sleepy.STATE_UNKNOWN: