Commit Graph

512 Commits

Author SHA1 Message Date
gnuxie aa72badd3e Display notice for missing permissions. 2024-05-02 15:57:44 +01:00
gnuxie 0049dfd367 Update for MPS ProtectedRoomsManager. 2024-05-02 15:57:44 +01:00
gnuxie a85d292841 Renderers for UserConsequence UsersInRoom. 2024-05-02 15:57:44 +01:00
gnuxie 2bbca6d27a Update for MPS's PowerLevelMirror. 2024-05-02 15:57:44 +01:00
Catalan Lover 9239c23b5d Make Draupnir refer to it self in help output. (#358)
Title is the full description of this issue. This PR fixes #357
2024-04-19 13:59:43 +01:00
Gnuxie 3d02c72401 Gnuxie/consequence renderer clarity (#356)
* Allow span attributes to be rendered.

* Update for MPS 0.18.0.

* Add some consistency to capability renderers.
2024-04-18 17:32:27 +01:00
gnuxie 1a3666815c Print status at startup and show a log message.
Fixes https://github.com/the-draupnir-project/Draupnir/issues/349.
2024-04-16 18:31:12 +01:00
gnuxie 06e966f227 Improve appservice provisioning
Attempt at fixing https://github.com/the-draupnir-project/Draupnir/issues/276.
2024-04-16 17:46:42 +01:00
gnuxie 5990de6ce3 Use handleProtectionDisable hook to disable protection listeners.
Fixes https://github.com/the-draupnir-project/Draupnir/issues/345.
2024-04-16 12:41:12 +01:00
Gnuxie ae86e173f5 Update for MPS 0.17.1. (#347)
* Update for MPS 0.17.1.

Part of https://github.com/the-draupnir-project/Draupnir/issues/333
And https://github.com/the-draupnir-project/Draupnir/issues/345

Fixes https://github.com/the-draupnir-project/Draupnir/issues/337

* Add loggableConfigTracker to Draupnir.

Part of https://github.com/the-draupnir-project/Draupnir/issues/217.
I don't think this is right yet.
2024-04-16 12:24:17 +01:00
Gnuxie e634c3c502 Add PolicyChangeNotification protection. (#346)
Fixes https://github.com/the-draupnir-project/Draupnir/issues/335.
2024-04-15 23:33:13 +01:00
Gnuxie 97482aab2f Allow config.disableServerACL to disable ServerBanSynchronisationProtection (#339)
* Update for MPS ~0.16.0.

* Update for new MPS ProtectionsManager.

Part of https://github.com/the-draupnir-project/Draupnir/issues/317.

* `config.disableServerACL` now disabled `ServerBanSynchronisationProtection`

Fixes https://github.com/the-draupnir-project/Draupnir/issues/317.
2024-04-14 14:20:50 +01:00
Gnuxie 86d1605bfa Protect lists after creation. (#332) 2024-04-10 21:25:32 +01:00
Gnuxie 4c775742be Post MPS Allow use of shortcodes to refer to policy rooms (#331)
* Update to MPS 0.15.0.

This adds support for mjolnir shortcodes.

* Add shortcode support back post MPS.

Fixes https://github.com/the-draupnir-project/Draupnir/issues/316.
2024-04-10 21:14:48 +01:00
gnuxie 1ff59481be Catch all bans in BanPropagationProtection so we can detect edits. 2024-04-06 20:03:38 +01:00
gnuxie 21e640e9bf Improve readability of redaction synchronisation protection. 2024-04-06 20:03:38 +01:00
gnuxie 80ccb64330 Implement RoomStateBackingStore with BetterSqlite. 2024-04-06 20:03:38 +01:00
gnuxie 2392791444 Add RedactionSynchronisation protection. 2024-04-06 20:03:38 +01:00
gnuxie 45a2429eac Update MPS dependencies to fix banpropagation bugs. 2024-04-06 20:03:37 +01:00
gnuxie 6957b3e404 Fix eslint (i don't think this was ever working :/) 2024-04-06 20:03:37 +01:00
gnuxie 4a8962b371 Fix draupnirMXID creation from mjolnir record. 2024-04-06 20:03:37 +01:00
gnuxie ad01b09773 Fix appservice provisioning. 2024-04-06 20:03:37 +01:00
gnuxie 979bef6013 Revert "Attempt make draupnirFactory accessible to integration tests"
This reverts commit 68ca69882bd7627414951aef11985408fd29dec8.
2024-04-06 20:03:37 +01:00
gnuxie 6d52137501 Attempt make draupnirFactory accessible to integration tests
But this won't work as we'd have to mess about a lot with
the clientsinroommap
2024-04-06 20:03:37 +01:00
gnuxie 14e6dc8457 Remove suprious method from DraupnirManager
The ClientsInRoomsMap is updated in the appservice event handler anyhow.
2024-04-06 20:03:36 +01:00
gnuxie 16b8b5b07a Remove displayname from command handler prefixes.
It's unclear to me how to reliably implement this, so i have
removed it for now.
The problem is setting up code to watch for changes to the
displyname in the management room.
2024-04-06 20:03:36 +01:00
gnuxie 7c6c0bf189 Introduce MPS RoomSetResult to capability renderers. 2024-04-06 20:03:36 +01:00
gnuxie b145790b16 Add capabilityMessageRender to Draupnir class. 2024-04-06 20:03:36 +01:00
gnuxie fcc22dac5c capablity renderer stuff that didn't get committed 2024-04-06 20:03:36 +01:00
gnuxie 6b9162bc9d Capability renderers and glue. 2024-04-06 20:03:36 +01:00
gnuxie c1bfcf610e Begin moving from ConsequenceProvider to CapabilityProviderSet.
We gotta sort out the glue and the renderering yet.
2024-04-06 20:03:36 +01:00
gnuxie 41db3392df Stop throwing in Draupnir['makeDraupnirBot'] 2024-04-06 20:03:36 +01:00
gnuxie 8044a78fa6 Fix reportPollerTest (it works!) 2024-04-06 20:03:36 +01:00
gnuxie 380f4b1a77 Update for ClientsInRoomsMap rework (MPS). 2024-04-06 20:03:36 +01:00
gnuxie 0dc7c84afd Fix BanPropagationProtectionTest (it works!)
However, it does hang because something is sat on the event loop,
i can't find out what yet.
2024-04-06 20:03:36 +01:00
gnuxie 70d0cec695 Typo in RoomUpdateError
We really need a way to type the embedded expressions within JSX to
stop this happening, aswell as accidentally passing `undefined`.
2024-04-06 20:03:36 +01:00
gnuxie 2fe1ad1f37 Fix renderSetMembershipBans - it wasn't finished. 2024-04-06 20:03:36 +01:00
gnuxie e16e6b9fbf Give roomJoiner to MjolnirWatchedListsConfig (MPS). 2024-04-06 20:03:36 +01:00
gnuxie 0d87c687fe Restrict ReportManager's reaction listsener to management room. 2024-04-06 20:03:36 +01:00
gnuxie 91358af874 Fix bug where report manager was only being shown 'm.room.message' 2024-04-06 20:03:36 +01:00
gnuxie 5a991897dc Fix Draupnir's joinOnInviteListener. 2024-04-06 20:03:36 +01:00
gnuxie 3eb3bae085 Instantiate web apis in an appropriate place. 2024-04-06 20:03:36 +01:00
gnuxie e05e55ef94 Fix bug where poller only showed reports from protected rooms.
Was introduced in https://github.com/matrix-org/mjolnir/pull/371
for whatever reason.
2024-04-06 20:03:36 +01:00
gnuxie bc673927e3 Typo in status command. 2024-04-06 20:03:35 +01:00
gnuxie 10905a0b29 Only inform protected rooms set of protected rooms. 2024-04-06 20:03:35 +01:00
gnuxie b5cc239325 Missing root node on consequence renderer. 2024-04-06 20:03:35 +01:00
gnuxie c190753e1d Enable MPS's Member/ServerBanSynchronisationProtections by default. 2024-04-06 20:03:35 +01:00
gnuxie 2f8215761c Load Draupnir protections in the DraupnirProtectedRoomsSet. 2024-04-06 20:03:35 +01:00
gnuxie 89ee808f6a Change leftover references to matrix-bot-sdk UserID.
These should now reference the MPS equivalent.
2024-04-06 20:03:35 +01:00
gnuxie 0c2d391ff4 Fix inverted boolean logic in CommandReader.
We couldn't read room references.
2024-04-06 20:03:35 +01:00