You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set and sync policy server configuration in protected rooms
Desired behaviour:
* When syncing policy list changes, ensure the policy server is set in the rooms (if applicable).
* Allow the policy server to be set in the config to avoid unsetting it on startup in already-protected rooms.
* Allow the policy server to be changed with commands. This enables operators to pick a different policy server than the config at runtime.
* Don't migrate to stable event types if only the unstable event type is sent. It's assumed that an external tool will take care of migrating.
* Works with `protectAllJoinedRooms` to set the policy server state event on sync.
This does *not* ensure that the policy server is actually joined to each of the rooms. A later PR/feature will make that work.
@@ -198,7 +201,8 @@ export async function handleCommand(roomId: string, event: { content: { body: st
198
201
"!mjolnir default <shortcode> - Sets the default list for commands\n"+
199
202
"!mjolnir rules - Lists the rules currently in use by Mjolnir\n"+
200
203
"!mjolnir rules matching <user|room|server> - Lists the rules in use that will match this entity e.g. `!rules matching @foo:example.com` will show all the user and server rules, including globs, that match this user\n"+
201
-
"!mjolnir sync - Force updates of all lists and re-apply rules\n";
204
+
"!mjolnir sync - Force updates of all lists and re-apply rules\n"+
205
+
"!mjolnir policy_server <name or 'unset'> - Sets the policy server name in protected rooms, or removes it if 'unset' is given\n";
0 commit comments