fix destroy condition

This commit is contained in:
Timo
2025-02-11 14:22:26 +01:00
parent b7b8719171
commit 471712cbf0
2 changed files with 11 additions and 6 deletions

View File

@@ -316,7 +316,6 @@ describe("RoomViewStore", function () {
it("should display an error message when the room is unreachable via the roomId", async () => {
// When
// View and wait for the room
// jest.spyOn(WidgetStore).mockReturnValue({ getApps: () => [] } as unknown as void & WidgetStore);
dis.dispatch({ action: Action.ViewRoom, room_id: roomId });
await untilDispatch(Action.ActiveRoomChanged, dis);
// Generate error to display the expected error message