mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-05-24 16:25:18 +00:00
Change list creation command to also protect the new room
https://github.com/matrix-org/mjolnir/issues/370
This commit is contained in:
@@ -32,6 +32,7 @@ export async function execCreateListCommand(roomId: string, event: any, mjolnir:
|
||||
|
||||
const roomRef = Permalinks.forRoom(listRoomId);
|
||||
await mjolnir.watchList(roomRef);
|
||||
await mjolnir.addProtectedRoom(listRoomId);
|
||||
|
||||
const html = `Created new list (<a href="${roomRef}">${listRoomId}</a>). This list is now being watched.`;
|
||||
const text = `Created new list (${roomRef}). This list is now being watched.`;
|
||||
|
||||
Reference in New Issue
Block a user