Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDL-81951 changes to power levels #11

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

davewoloszyn
Copy link
Collaborator

There are two commits here:
The latest is just a correction to bring our mock's power levels inline with the Matrix defaults.
https://github.com/matrix-org/synapse/blob/v1.70.0/synapse/handlers/room.py#L1170-L1189

The other commit is more substantial. A new GET request is now possible when using the /v3/rooms/{roomID}/state/{eventType}/ route that allows the fetching of power levels.

Resolved in MDL-81591, we were fetching the power levels using sync, but I found that this would sometimes lag in its results and not always give up-to-the-second results. I created a new trait that used the m.room.power_levels endpoint with a GET request. The changes here reflect that.

IMPORTANT: This pull request will need to be accepted before the Moodle tracker issue MDL-81951 is integrated.

@andrewnicols andrewnicols merged commit ae7ad3d into moodlehq:main Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants