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

Make autojoinOnlyIfManager true by default. #451

Merged
merged 1 commit into from
Dec 7, 2022
Merged

Conversation

Gnuxie
Copy link
Contributor

@Gnuxie Gnuxie commented Dec 7, 2022

Also assert that we if autojoinOnlyIfManager is enabled that
the user has provided a space for acceptInvitesFromSpace.
It does sound like autojoinOnlyIfManager would imply that
anyone could send an invitation to the mjolnir if
autojoinOnlyIfManager is false.
This has never been the case though, and it is not sensible
either, especially if protectAllJoinedRooms is also true.
Additionally the documentation in config/default.yaml
has always claimed that autojoinOnlyIfManager is "true by default".

This setting has confused users in #mjolnir:matrix.org before
Closes #436.

Also fixes an issue in the appservice where we require
autojoinOnlyIfManager to always be explicitly set to false
or it crashes any Mjolnir receiving an invite.

@Gnuxie Gnuxie requested review from Yoric and jesopo December 7, 2022 16:34
@@ -127,7 +127,7 @@ const defaultConfig: IConfig = {
},
dataPath: "/data/storage",
acceptInvitesFromSpace: '!noop:example.org',
autojoinOnlyIfManager: false,
autojoinOnlyIfManager: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you take the opportunity to document what autojoinOnlyIfManager does in IConfig?

Also assert that we if `autojoinOnlyIfManager` is enabled that
the user has provided a space for `acceptInvitesFromSpace`.
It does sound like `autojoinOnlyIfManager` would imply that
anyone could send an invitation to the mjolnir if
`autojoinONlyIfManager` is false.
This has never been the case though, and it is not sensible
either, especially if `protectAllJoinedRooms` is also true.
Additionally the documentation in `config/default.yaml`
has always claimed that `autojoinOnlyIfManager` is "true by default".

This setting has confused users in #mjolnir:matrix.org before
Closes #436.

Also fixes an issue in the appservice where we require
`autojoinOnlyIfManager` to always be explicitly set to false
or it crashes any Mjolnir receiving an invite.
@Gnuxie Gnuxie merged commit 1d3da94 into main Dec 7, 2022
@Gnuxie Gnuxie deleted the gnuxie/spaces-invite branch December 7, 2022 17:00
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.

Mjolnir crashes when acceptInvitesFromSpace isn't set.
2 participants