matrix-org / matrix-org/matrix-rust-sdk

Allow to observe/listen to room membership state changes for the current user

Open
#1,741 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2.3k
Forks
500
Avg merge
1d 16h
Merged PRs (30d)
106

Description

All clients would probably benefit from having a mechanism to listen to or observe membership state changes for the current user, to understand when it should no longer have access to a room. While a general mechanism to observe room changes (title, topic, power level, members, etc.) would be great, it's probably membership that's the most urgent.

Listening to events in the timeline doesn't seem to work, and neither does observing sliding sync changes, or at least I couldn't make it work.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the SDK currently exposes timeline events and sliding sync changes, since the issue reports that neither reliably reveals current-user membership changes. Define the public observation mechanism and verify that it reports when the user loses access to a room; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend-api-design
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.