use crypto.randomUUID()

This commit is contained in:
Timo K
2026-01-09 19:40:21 +01:00
parent 45bb233673
commit 7a8f5cc859

View File

@@ -47,7 +47,7 @@ import {
} from "matrix-js-sdk/lib/matrixrtc";
import { type IWidgetApiRequest } from "matrix-widget-api";
import { type CallMembershipIdentityParts } from "matrix-js-sdk/lib/matrixrtc/EncryptionManager";
import { v4 as uuidv4 } from "uuid";
import { randomUUID } from "crypto";
import {
LocalUserMediaViewModel,
@@ -432,7 +432,7 @@ export function createCallViewModel$(
userId,
deviceId,
// This will only be consumed by the sticky membership manager. So it has no impact on legacy calls.
memberId: uuidv4(),
memberId: randomUUID(),
};
const localTransport$ = createLocalTransport$({