Add isRoomEncrypted to room

This commit is contained in:
Florian Duros 2024-10-23 15:50:51 +02:00
parent 4be697d4c2
commit a9c42bbbd7
No known key found for this signature in database
GPG Key ID: A5BBB4041B493F15
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -77,6 +77,7 @@ describe("<SendMessageComposer/>", () => {
canAskToJoin: false, canAskToJoin: false,
promptAskToJoin: false, promptAskToJoin: false,
viewRoomOpts: { buttons: [] }, viewRoomOpts: { buttons: [] },
isRoomEncrypted: false,
}; };
describe("createMessageContent", () => { describe("createMessageContent", () => {
it("sends plaintext messages correctly", () => { it("sends plaintext messages correctly", () => {