From 52172832d666b7ef13c56fd05167f496c2123e20 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 --- src/contexts/RoomContext.ts | 1 + test/test-utils/room.ts | 2 +- .../components/views/rooms/SendMessageComposer-test.tsx | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/contexts/RoomContext.ts b/src/contexts/RoomContext.ts index acd4bfa6f4..b0fdc954e7 100644 --- a/src/contexts/RoomContext.ts +++ b/src/contexts/RoomContext.ts @@ -75,6 +75,7 @@ const RoomContext = createContext< canAskToJoin: false, promptAskToJoin: false, viewRoomOpts: { buttons: [] }, + isRoomEncrypted: false, }); RoomContext.displayName = "RoomContext"; export default RoomContext; diff --git a/test/test-utils/room.ts b/test/test-utils/room.ts index d618932726..bfd1f9004c 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 f3a0168833..9853ddb1ba 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", () => {