mirror of
https://github.com/nextcloud/server.git
synced 2026-10-24 12:17:23 +02:00
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>