use crypto.randomUUID()
This commit is contained in:
@@ -47,7 +47,7 @@ import {
|
|||||||
} from "matrix-js-sdk/lib/matrixrtc";
|
} from "matrix-js-sdk/lib/matrixrtc";
|
||||||
import { type IWidgetApiRequest } from "matrix-widget-api";
|
import { type IWidgetApiRequest } from "matrix-widget-api";
|
||||||
import { type CallMembershipIdentityParts } from "matrix-js-sdk/lib/matrixrtc/EncryptionManager";
|
import { type CallMembershipIdentityParts } from "matrix-js-sdk/lib/matrixrtc/EncryptionManager";
|
||||||
import { v4 as uuidv4 } from "uuid";
|
import { randomUUID } from "crypto";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
LocalUserMediaViewModel,
|
LocalUserMediaViewModel,
|
||||||
@@ -432,7 +432,7 @@ export function createCallViewModel$(
|
|||||||
userId,
|
userId,
|
||||||
deviceId,
|
deviceId,
|
||||||
// This will only be consumed by the sticky membership manager. So it has no impact on legacy calls.
|
// 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$({
|
const localTransport$ = createLocalTransport$({
|
||||||
|
|||||||
Reference in New Issue
Block a user