1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

When joining room in sub-space join the parents too (#11011)

* When joining room in sub-space join the parents too

* Fix joined state not updating on sync

* Add membership check

* Update tests

* Improve coverage

* Make TS happier

* Make TS happier
This commit is contained in:
Michael Telatynski
2023-06-01 13:35:47 +01:00
committed by GitHub
parent ca53b11aa9
commit b6b9ce3c46
4 changed files with 490 additions and 165 deletions

View File

@ -236,6 +236,7 @@ export function createTestClient(): MatrixClient {
searchUserDirectory: jest.fn().mockResolvedValue({ limited: false, results: [] }),
setDeviceVerified: jest.fn(),
joinRoom: jest.fn(),
} as unknown as MatrixClient;
client.reEmitter = new ReEmitter(client);