From cce60d48099902c7f48d90f88ceaa02eac4e4799 Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Wed, 23 Oct 2024 15:50:51 +0200 Subject: [PATCH] Add `isRoomEncrypted` to room --- test/test-utils/room.ts | 2 +- .../components/views/rooms/SendMessageComposer-test.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test-utils/room.ts b/test/test-utils/room.ts index d618932726c..bfd1f9004c0 100644 --- a/test/test-utils/room.ts +++ b/test/test-utils/room.ts @@ -85,7 +85,7 @@ export function getRoomContext(room: Room, override: Partial): IRoom canAskToJoin: false, promptAskToJoin: false, viewRoomOpts: { buttons: [] }, - + isRoomEncrypted: false, ...override, }; } diff --git a/test/unit-tests/components/views/rooms/SendMessageComposer-test.tsx b/test/unit-tests/components/views/rooms/SendMessageComposer-test.tsx index f3a0168833a..9853ddb1ba0 100644 --- a/test/unit-tests/components/views/rooms/SendMessageComposer-test.tsx +++ b/test/unit-tests/components/views/rooms/SendMessageComposer-test.tsx @@ -77,6 +77,7 @@ describe("", () => { canAskToJoin: false, promptAskToJoin: false, viewRoomOpts: { buttons: [] }, + isRoomEncrypted: false, }; describe("createMessageContent", () => { it("sends plaintext messages correctly", () => {