feat[bindings]: expose power level thresholds in corresponding timeline event#5931
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5931 +/- ##
=======================================
Coverage 88.93% 88.93%
=======================================
Files 357 357
Lines 99195 99195
Branches 99195 99195
=======================================
+ Hits 88221 88223 +2
+ Misses 6991 6988 -3
- Partials 3983 3984 +1 ☔ View full report in Codecov by Sentry. |
1 task
Contributor
Author
Contributor
Signed-off-by: JoFrost <20685007+JoFrost@users.noreply.github.com>
Contributor
Author
Signed-off-by: JoFrost <20685007+JoFrost@users.noreply.github.com>
Signed-off-by: JoFrost <20685007+JoFrost@users.noreply.github.com>
poljar
requested changes
Jan 16, 2026
poljar
left a comment
Contributor
There was a problem hiding this comment.
Sorry for the delay, this got rebased over my holidays.
Looks mostly good, I left a couple of nits.
| the user who forwarded the keys used to decrypt the event as part of an [MSC4268](https://github.com/matrix-org/matrix-spec-proposals/pull/4268) | ||
| key bundle. | ||
| ([#6000](https://github.com/matrix-org/matrix-rust-sdk/pull/6000)) | ||
| - Expose room power level thresholds in `OtherState::RoomPowerLevels` (ban, kick, invite, redact, state & |
Contributor
There was a problem hiding this comment.
New entries to the top please.
| events: HashMap<TimelineEventType, i64>, | ||
| previous_events: Option<HashMap<TimelineEventType, i64>>, | ||
| users: HashMap<String, i64>, | ||
| previous: Option<HashMap<String, i64>>, |
Contributor
There was a problem hiding this comment.
Can we rename this to prevoius_users like the other fields have the previous prefix.
Contributor
Author
|
No worries. All done, btw @poljar! |
poljar
approved these changes
Jan 19, 2026
auto-merge was automatically disabled
January 19, 2026 16:17
Rebase failed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello! This PR exposes power-level thresholds in OtherState::RoomPowerLevels for the FFI timeline.
It includes action requirements such as ban, kick, invite, redact, state_default, events_default, per-event overrides and notifications. This gives FFI clients direct access to the effective power levels of a room, which were previously unavailable.
Signed-off-by: