matrix-org / matrix-org/matrix-spec

Need a way to get all online users presences (SPEC-397)

Open
#180 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-Client-Server enhancement p2
Dominant language
HTML
Stars
330
Forks
150
Avg merge
2h 21m
Merged PRs (30d)
3

Description

The first /sync, initialSync, implicitly sends presences of all online users.
This allows to be in-sync about all online users. This is currently the only way to get this information.

But a (mobile) client that has a resume capability avoids to do initialSync. Thus, it cannot know who is online on a resume and displays wrong presence values.

It would be nice to have mechanism to get all online users presences.
Mark suggested:
- Maybe if we added a filtering mechanism to the full_state flag we might be able to do something nicer here?
- Or just added another flag to /sync like the full_state flag?
- Or extended /sync to make it possible to submit a separate request to get the missing presence?

(Imported from https://matrix.org/jira/browse/SPEC-397)

(Reported by @manuroe)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the /sync, initialSync, and full_state behavior described in the specification, then compare resume behavior with initial sync. Done means the specification defines an agreed mechanism for clients to retrieve all online users' presences when resuming, including its request and response behavior.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.