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

Stop Mjolnir blindly protecting all policy lists at startup. #431

Merged
merged 1 commit into from
Nov 22, 2022

Conversation

Gnuxie
Copy link
Contributor

@Gnuxie Gnuxie commented Nov 22, 2022

Mjolnir.resyncAllJoinedRooms needs policy lists to be loaded into mjolnir in order to filter them out of the protect rooms set (unless explicitly protected). This is so that you don't end up having mjolnir complain about protecting a list which you have no control over, and are just watching (e.g. #matrix-org-coc-bl:matrix.org).

https://matrix.to/#/!WpbOWAblxueZXAAnjj:matrix.org/$f0rKGBOJTcaC_bLPfydApg8oUEw4caZNk-9G1Sa4QSU?via=matrix.org&via=envs.net&via=element.io

`Mjolnir.resyncAllJoinedRooms` needs policy lists to be loaded into mjolnir
in order to filter them out of the protect rooms set (unless explicitly protected).
This is so that you don't end up having mjolnir complain about protecting
a list which you have no control over, and are just watching (e.g. #matrix-org-coc-bl:matrix.org).
@Gnuxie Gnuxie requested a review from Yoric November 22, 2022 12:39
@Gnuxie Gnuxie merged commit 410ceeb into main Nov 22, 2022
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