mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-22 19:42:51 +00:00
Make the memberId dependent on the matrixRTC mode.
This outherwise creates to-device messages with the uuid for members that use the userId:deviceId memberId in the state event.
This commit is contained in:
1 parent
f56c74adf9
commit
9f6c8bb434
1 file changed
+8
-2
@@ -563,8 +563,14 @@ export function createCallViewModel$(
|
||||
const ownMembershipIdentity: CallMembershipIdentityParts = {
|
||||
userId,
|
||||
deviceId,
|
||||
// This will only be consumed by the sticky membership manager. So it has no impact on legacy calls.
|
||||
memberId: uuidv4(),
|
||||
// Consumed by the sticky membership manager as `member.id`, *and* stamped
|
||||
// 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 =
|
||||
|
||||
Reference in new issue
Block a user