From 7a8f5cc8596afffed6fdcced4dbd540c1b9e0f4e Mon Sep 17 00:00:00 2001 From: Timo K Date: Fri, 9 Jan 2026 19:40:21 +0100 Subject: [PATCH] use `crypto.randomUUID()` --- src/state/CallViewModel/CallViewModel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/state/CallViewModel/CallViewModel.ts b/src/state/CallViewModel/CallViewModel.ts index bf3e9521..aea0f7fa 100644 --- a/src/state/CallViewModel/CallViewModel.ts +++ b/src/state/CallViewModel/CallViewModel.ts @@ -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$({