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 a41c221616..78ca0adab4 100644 --- a/test/unit-tests/components/views/rooms/SendMessageComposer-test.tsx +++ b/test/unit-tests/components/views/rooms/SendMessageComposer-test.tsx @@ -78,6 +78,7 @@ describe("", () => { canAskToJoin: false, promptAskToJoin: false, viewRoomOpts: { buttons: [] }, + isRoomEncrypted: false, }; describe("createMessageContent", () => { const permalinkCreator = jest.fn() as any;