Add `isRoomEncrypted` to room

florianduros/rip-out-legacy-crypto/migrate-roomview-isencrypted
Florian Duros 2024-10-23 15:50:51 +02:00
parent 11ddcc1e90
commit 3e64ea067b
No known key found for this signature in database
GPG Key ID: A5BBB4041B493F15
3 changed files with 3 additions and 1 deletions

View File

@ -75,6 +75,7 @@ const RoomContext = createContext<
canAskToJoin: false,
promptAskToJoin: false,
viewRoomOpts: { buttons: [] },
isRoomEncrypted: false,
});
RoomContext.displayName = "RoomContext";
export default RoomContext;

View File

@ -85,7 +85,7 @@ export function getRoomContext(room: Room, override: Partial<IRoomState>): IRoom
canAskToJoin: false,
promptAskToJoin: false,
viewRoomOpts: { buttons: [] },
isRoomEncrypted: false,
...override,
};
}

View File

@ -78,6 +78,7 @@ describe("<SendMessageComposer/>", () => {
canAskToJoin: false,
promptAskToJoin: false,
viewRoomOpts: { buttons: [] },
isRoomEncrypted: false,
};
describe("createMessageContent", () => {
const permalinkCreator = jest.fn() as any;