mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-07-11 16:28:47 +00:00
Protect lists after creation. (#332)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user