Protect lists after creation. (#332)

This commit is contained in:
Gnuxie
2024-04-10 21:25:32 +01:00
committed by GitHub
parent 4c775742be
commit 86d1605bfa
+4
View File
@@ -54,6 +54,10 @@ export async function createList(
if (isError(watchResult)) {
return watchResult;
}
const protectResult = await this.draupnir.protectedRoomsSet.protectedRoomsConfig.addRoom(newList.ok);
if (isError(protectResult)) {
return protectResult;
}
return newList;
}