1
0
mirror of https://github.com/element-hq/element-web.git synced 2025-08-08 03:42:14 +03:00

Change settings to true by default (#25)

This commit is contained in:
Florian Duros
2024-09-11 13:16:52 +02:00
committed by GitHub
parent 07125f554d
commit 03004a55fd
7 changed files with 5 additions and 6 deletions

View File

@@ -571,7 +571,10 @@ export function mkStubRoom(
name: string | undefined,
client: MatrixClient | undefined,
): Room {
const stubTimeline = { getEvents: (): MatrixEvent[] => [] } as unknown as EventTimeline;
const stubTimeline = {
getEvents: (): MatrixEvent[] => [],
getState: (): RoomState | undefined => undefined,
} as unknown as EventTimeline;
return {
canInvite: jest.fn(),
client,