last_active_ago
is updated on sync when it shouldn't be
#12424
Labels
last_active_ago
is updated on sync when it shouldn't be
#12424
This issue has been migrated from #12424.
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 matrix-org/synapse#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: