Files
Git'Fellow 468dfa3d66 fix(user_status): refresh a live status before it can be invalidated
UserLiveStatusListener only refreshed status_timestamp once it was
already older than INVALIDATE_STATUS_THRESHOLD, which is the same 15
minutes at which ClearOldStatusesBackgroundJob sweeps a status to
offline. With a five minute client interval that leaves a window, up to
one interval wide, in which a user who never stopped working is shown as
offline until their next heartbeat arrives.

The refresh now happens at REFRESH_STATUS_THRESHOLD, far enough below
the invalidation threshold to leave room for a full heartbeat interval.
Until now the sheer number of heartbeats hid the problem, because one
always landed within seconds of the cleanup job.

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2026-09-09 09:26:04 +02:00
..