element-hq / element-hq/synapse

When leaving the last room shared with a remote user, the remote user is missing from `device_lists.left` in the `/sync` response, even when `lazy_load_members` is off

Open
#13,650 0 comments 0 reactions 0 assignees View on GitHub
A-Device-List-Tracking A-Sync O-Uncommon S-Tolerable T-Defect
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#13650](https://github.com/matrix-org/synapse/issues/13650).

---

1. Have a room with one local user, `@alice:local` and one remote user, `@bob:remote`.
2. Have `@alice:local` leave the room.
3. `@alice:local` does not observe `@bob:remote` in the `device_lists.left` section of /sync.
4. [If `@bob:remote` then updates their device list and `@alice:local` does a `/keys/query` request, the correct response is returned. This part is working.]
5. [If `@alice:local` rejoins the room, I believe `device_lists.changed` will contain `@bob:remote`, so nothing should break here.]

Not tested with `lazy_load_members` yet. I presume it's similarly buggy and even trickier to fix.

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.