1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Show voice room participants when not connected (#8136)

* Add utility for getting connected voice participants

* Allow voice room members to send connected device state

* Update connected devices when connecting/disconnecting voice

* Show voice room participants in room tile when not connected

* Update voice room tests

* Add null types and guards
This commit is contained in:
Robin
2022-03-28 09:12:09 -04:00
committed by GitHub
parent 0a16989d26
commit 8baf06c3ff
10 changed files with 378 additions and 143 deletions

View File

@ -62,6 +62,7 @@ export function createTestClient(): MatrixClient {
getDomain: jest.fn().mockReturnValue("matrix.rog"),
getUserId: jest.fn().mockReturnValue("@userId:matrix.rog"),
getUser: jest.fn().mockReturnValue({ on: jest.fn() }),
getDeviceId: jest.fn().mockReturnValue("ABCDEFGHI"),
credentials: { userId: "@userId:matrix.rog" },
getPushActionsForEvent: jest.fn(),