element-hq / element-hq/synapse

`/sync` and `/members` do not return "current state"

Open
#16,940 12 comments 0 reactions 0 assignees View on GitHub
A-Sync O-Frequent S-Major T-Defect
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

Consider a DAG like this:

```
E1
↗ ↖
| S2
|
--|---
|
E3
```

The client then initialsyncs, with `limit=1` (or maybe there are lots of events at E3), represented by the horizontal dashed line.

The "current state" (as defined by "what will be the state of the room if I send an event right now", which is what is important for encryption, etc) includes S2. However, the result from `/sync` does not include S2 (and will not, at least until there is an event in the DAG which joins the forks).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.