Don't change sleeper state when we send a presence to a user, to not think global status has changed from invisible. see #4631

This commit is contained in:
Yann Leboulanger 2009-01-09 18:34:56 +00:00
parent 93b63ea843
commit bd759262bb
1 changed files with 1 additions and 1 deletions

View File

@ -1955,7 +1955,7 @@ class RosterWindow:
self.send_status_continue(account, status, txt, auto, to)
def send_status_continue(self, account, status, txt, auto, to):
if gajim.account_is_connected(account):
if gajim.account_is_connected(account) and not to:
if status == 'online' and gajim.interface.sleeper.getState() != \
common.sleepy.STATE_UNKNOWN:
gajim.sleeper_state[account] = 'online'