[Backport staging] Fix call splitbrains when switching between rooms (#9701)
* Fix call splitbrains when switching between rooms
Mounting CallView causes the user's call membership room state to be cleaned up. However, because the GroupCall object always thought the local device was disconnected from the call, it would remove the local device from room state when the clean method is called, causing a splitbrain. This uses GroupCall's new enteredViaAnotherSession field to fix that, and also simplify participant tracking.
* Remove clean tests that have been moved to matrix-js-sdk
(cherry picked from commit 62a740d318
)
Co-authored-by: Robin <robin@robin.town>
This commit is contained in:
parent
fcc49d0959
commit
07577a6cde
3 changed files with 3 additions and 115 deletions
|
@ -91,6 +91,7 @@ export function createTestClient(): MatrixClient {
|
|||
getDeviceId: jest.fn().mockReturnValue("ABCDEFGHI"),
|
||||
deviceId: "ABCDEFGHI",
|
||||
getDevices: jest.fn().mockResolvedValue({ devices: [{ device_id: "ABCDEFGHI" }] }),
|
||||
getSessionId: jest.fn().mockReturnValue("iaszphgvfku"),
|
||||
credentials: { userId: "@userId:matrix.org" },
|
||||
|
||||
store: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue