Skip to content

fix(presence): align autoaway state on reconnect#2192

Merged
jubalh merged 1 commit into
masterfrom
fix/2073
Jul 8, 2026
Merged

fix(presence): align autoaway state on reconnect#2192
jubalh merged 1 commit into
masterfrom
fix/2073

Conversation

@jubalh

@jubalh jubalh commented Jul 6, 2026

Copy link
Copy Markdown
Member

Align the internal autoaway activity state with the actual initial login presence sent on successful reconnection.

When reconnection succeeds we establish the initial presence (Online or Last status), but the internal activity_state remained in ACTIVITY_ST_AWAY or ACTIVITY_ST_XA because the state was never updated upon disconnect or reconnect.

This led to two issues:

  1. If the user reconnected as Online while remaining idle, the state was stuck in ACTIVITY_ST_AWAY and the client never went away again.
  2. If the user returned and pressed a key, the client could not trigger a transition back to Online since it already thought they were active, causing the clients presence to get stuck in Away.

Fixes: #2073

Align the internal autoaway activity state with the actual initial login
presence sent on successful reconnection.

When reconnection succeeds we establish the initial presence (Online or
Last status), but the internal `activity_state` remained in
`ACTIVITY_ST_AWAY` or `ACTIVITY_ST_XA` because the state was never
updated upon disconnect or reconnect.

This led to two issues:
1. If the user reconnected as Online while remaining idle, the state was
stuck in `ACTIVITY_ST_AWAY` and the client never went away again.
2. If the user returned and pressed a key, the client could not trigger
a transition back to Online since it already thought they were active,
causing the clients presence to get stuck in Away.

Fixes: #2073
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
@jubalh jubalh mentioned this pull request Jul 6, 2026
@jubalh jubalh self-assigned this Jul 8, 2026
@jubalh jubalh added this to the next milestone Jul 8, 2026
@jubalh jubalh merged commit cb7acfc into master Jul 8, 2026
12 checks passed
@jubalh jubalh deleted the fix/2073 branch July 8, 2026 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Reconnect failure

1 participant