This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
last_active_ago
is updated on sync when it shouldn't be
#12424
Labels
A-Presence
A-Sync
defects related to /sync
S-Tolerable
Minor significance, cosmetic issues, low or no impact to users.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Description
The
last_active_ts
is updated for a user when they perform a regular sync request where their previous presence is 'online'. It looks like synapse intends to only update this when a sync is performed withset_presence = online
and the previous presence state is online, and the spec says it should only be updated on a proactive event from the user.This is because
set_state
is called in order to set the new presence state and this method always updated last_active_ago.Found while working on #12213 but I think this will need another inter-process API added to fix.
Steps to reproduce
Version information
If not matrix.org:
Version:
Install method:
The text was updated successfully, but these errors were encountered: