diff --git a/package.json b/package.json index 173bb65..210d98c 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "matrix-appservice-bridge": "^10.3.1", "matrix-bot-sdk": "npm:@vector-im/matrix-bot-sdk@^0.7.1-element.6", "matrix-protection-suite": "npm:@gnuxie/matrix-protection-suite@3.6.1", - "matrix-protection-suite-for-matrix-bot-sdk": "npm:@gnuxie/matrix-protection-suite-for-matrix-bot-sdk@3.6.0", + "matrix-protection-suite-for-matrix-bot-sdk": "npm:@gnuxie/matrix-protection-suite-for-matrix-bot-sdk@3.6.1", "pg": "^8.8.0", "yaml": "^2.3.2" }, diff --git a/src/protections/RoomTakedown/SynapseRoomListRoomExplorerer.ts b/src/protections/RoomTakedown/SynapseRoomListRoomExplorerer.ts index 665600d..145a686 100644 --- a/src/protections/RoomTakedown/SynapseRoomListRoomExplorerer.ts +++ b/src/protections/RoomTakedown/SynapseRoomListRoomExplorerer.ts @@ -94,7 +94,7 @@ export class SynapseRoomListScanner { roomID: room.room_id, details: { room_id: room.room_id, - creator: room.creator, + creator: room.creator ?? undefined, name: room.name ?? undefined, }, })) diff --git a/yarn.lock b/yarn.lock index 36b0fd9..c0782f4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2598,10 +2598,10 @@ matrix-appservice@^2.0.0: request-promise "^4.2.6" sanitize-html "^2.11.0" -"matrix-protection-suite-for-matrix-bot-sdk@npm:@gnuxie/matrix-protection-suite-for-matrix-bot-sdk@3.6.0": - version "3.6.0" - resolved "https://registry.yarnpkg.com/@gnuxie/matrix-protection-suite-for-matrix-bot-sdk/-/matrix-protection-suite-for-matrix-bot-sdk-3.6.0.tgz#49ceffb9b366af619629a51a4e7bc76839761336" - integrity sha512-LQD+DKd/b+u/TW1r/OwTEU77SkH6D5Eo4ut37JiwzTzCvfRKpnBdg5qMosOWl0/hoaI42X1YLsRuXG/BVwH+wg== +"matrix-protection-suite-for-matrix-bot-sdk@npm:@gnuxie/matrix-protection-suite-for-matrix-bot-sdk@3.6.1": + version "3.6.1" + resolved "https://registry.yarnpkg.com/@gnuxie/matrix-protection-suite-for-matrix-bot-sdk/-/matrix-protection-suite-for-matrix-bot-sdk-3.6.1.tgz#e790f2caf081c151f0aee1a193c40009d93fa0e9" + integrity sha512-TG41kuy3lNjxaFvDm1jTWm2o6rQk5N+f0cNb7oB4MgNZAgv2WQZqDvyaD7HcfYzAlCS6f1z3lN/PAzIGXDMOmw== dependencies: "@gnuxie/typescript-result" "^1.0.0" await-lock "^2.2.2"