-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Per-room Activity Times (SPEC-92) #60
Comments
Let's not completely kill the last_active_age timer - it's still useful to know how globally idle a user is. But agreed that it'd be nice to also track how idle a user is within the context of a given room. As you say, this is just tracking as part of the membership state for a room the last time any given user interacted with the room. We can then sync it around like the rest of the membership state information. The clients can then track this clientside after the initial sync. -- @ara4n |
OK; I guess if we want to keep the global idleness timer, we can then move it down to a lower resolution. Say, only bump it if it's more than 5 minutes old? Does 5 minutes sound reasonable? -- @leonerd |
suggest every 1m for granularity to the nearest minute, which is more familiar and easy to express than nearest 5mins -- @ara4n |
As part of killing the bad idea that is the global "last_active_age" timer, we need a way for servers to send the activity age of each member of the room, to new clients that join/initialSync the room.
This is only needed on initialSync because thereafter, m.room.message or m.room.member(JOIN) events will bump the timer, so clients can track that number themselves with no extra message overhead.
What is needed then, is that the server store the timestamp of the most recent message (or JOIN membership event) for every member of every room. It then sends this as part of the initialSync data about that room.
(Imported from https://matrix.org/jira/browse/SPEC-92)
(Reported by @leonerd)
The text was updated successfully, but these errors were encountered: