mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-10-22 09:01:59 +00:00
Fix inverted boolean expression for validating managementRoomID.
This commit is contained in:
1 parent
c6f198303d
commit
8dadea7532
1 file changed
+1
-1
@@ -62,7 +62,7 @@ export async function makeDraupnirBotModeFromConfig(
|
||||
if (!isStringUserID(clientUserId)) {
|
||||
throw new TypeError(`${clientUserId} is not a valid mxid`);
|
||||
}
|
||||
if (!isStringRoomAlias(config.managementRoom) || !isStringRoomID(config.managementRoom)) {
|
||||
if (!isStringRoomAlias(config.managementRoom) && !isStringRoomID(config.managementRoom)) {
|
||||
throw new TypeError(`${config.managementRoom} is not a valid room id or alias`);
|
||||
}
|
||||
const configManagementRoomReference = MatrixRoomReference.fromRoomIDOrAlias(config.managementRoom);
|
||||
|
||||
Reference in new issue
Block a user