Prevent soft crash around room list header context menu when space changes (#8289)

This commit is contained in:
Michael Telatynski 2022-04-12 15:23:04 +01:00 committed by GitHub
parent 59fda5273f
commit 8cd715c6a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 148 additions and 2 deletions

View file

@ -379,6 +379,7 @@ export function mkStubRoom(roomId: string = null, name: string, client: MatrixCl
getJoinRule: jest.fn().mockReturnValue("invite"),
loadMembersIfNeeded: jest.fn(),
client,
canInvite: jest.fn(),
} as unknown as Room;
}