Skip to content
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

Open
matrixbot opened this issue Jan 15, 2015 · 4 comments
Open

Per-room Activity Times (SPEC-92) #60

matrixbot opened this issue Jan 15, 2015 · 4 comments
Labels
A-Client-Server Issues affecting the CS API feature Suggestion for a significant extension which needs considerable consideration

Comments

@matrixbot
Copy link
Member

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)

@matrixbot
Copy link
Member Author

Jira watchers: @leonerd @ara4n

@matrixbot
Copy link
Member Author

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

@matrixbot
Copy link
Member Author

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

@matrixbot
Copy link
Member Author

suggest every 1m for granularity to the nearest minute, which is more familiar and easy to express than nearest 5mins

-- @ara4n

@matrixbot matrixbot changed the title Per-room Activity Times Per-room Activity Times (SPEC-92) Oct 31, 2016
@matrixbot matrixbot added the spec-bug Something which is in the spec, but is wrong label Nov 7, 2016
@richvdh richvdh added feature Suggestion for a significant extension which needs considerable consideration and removed spec-bug Something which is in the spec, but is wrong labels Mar 6, 2018
@turt2live turt2live added the A-Client-Server Issues affecting the CS API label Feb 6, 2019
@richvdh richvdh transferred this issue from matrix-org/matrix-spec-proposals Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Client-Server Issues affecting the CS API feature Suggestion for a significant extension which needs considerable consideration
Projects
None yet
Development

No branches or pull requests

3 participants