mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-22 22:29:30 +00:00
Merge pull request #4266 from toger5/toger5/memberId-based-on-matrixRTCMode
Make the memberId dependent on the matrixRTC mode.
This commit is contained in:
@@ -563,8 +563,14 @@ export function createCallViewModel$(
|
|||||||
const ownMembershipIdentity: CallMembershipIdentityParts = {
|
const ownMembershipIdentity: CallMembershipIdentityParts = {
|
||||||
userId,
|
userId,
|
||||||
deviceId,
|
deviceId,
|
||||||
// This will only be consumed by the sticky membership manager. So it has no impact on legacy calls.
|
// Consumed by the sticky membership manager as `member.id`, *and* stamped
|
||||||
memberId: uuidv4(),
|
// into every to-device key event by the key transport. A pre-sticky
|
||||||
|
// membership advertises `${userId}:${deviceId}` as its `membershipID`
|
||||||
|
// instead, so a uuid there names a member no peer can resolve.
|
||||||
|
memberId:
|
||||||
|
matrixRTCMode === MatrixRTCMode.Matrix_2_0
|
||||||
|
? uuidv4()
|
||||||
|
: `${userId}:${deviceId}`,
|
||||||
};
|
};
|
||||||
|
|
||||||
const localTransport =
|
const localTransport =
|
||||||
|
|||||||
Reference in New Issue
Block a user