From 69b72097394829cd12421bf05d60eb20df33ab8a Mon Sep 17 00:00:00 2001 From: Gnuxie <50846879+Gnuxie@users.noreply.github.com> Date: Tue, 12 Sep 2023 11:57:50 +0100 Subject: [PATCH] Fix RoomUpdateError roomId argument typo (#123) We were clearly in the process of deleting the member decleration to just have the decleration be in the constructor. When we were distracted, leaving a property named `readonly`, which shouldn't be possible imo, need to add some rule for that prompto. --- src/ProtectedRoomsSet.ts | 2 +- src/models/RoomUpdateError.tsx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ProtectedRoomsSet.ts b/src/ProtectedRoomsSet.ts index 0bddbd3e..d0b00943 100644 --- a/src/ProtectedRoomsSet.ts +++ b/src/ProtectedRoomsSet.ts @@ -466,7 +466,7 @@ export class ProtectedRoomsSet { errors: IRoomUpdateError[], renderOptions: { title?: string, noErrorsText?: string } ): Promise { - printActionResult(this.client, this.managementRoomId, errors, renderOptions); + await printActionResult(this.client, this.managementRoomId, errors, renderOptions); } public async unbanUser(user: string): Promise { diff --git a/src/models/RoomUpdateError.tsx b/src/models/RoomUpdateError.tsx index c98e2ba7..e760d281 100644 --- a/src/models/RoomUpdateError.tsx +++ b/src/models/RoomUpdateError.tsx @@ -48,9 +48,7 @@ export class PermissionError extends CommandError implements IRoomUpdateError { } export class RoomUpdateException extends CommandException implements IRoomUpdateError { - roomId: string; - - constructor(public readonly: string, ...args: ConstructorParameters) { + constructor(public readonly roomId: string, ...args: ConstructorParameters) { super(...args); }