Remove dependency on uuid (#33230)

* Remove dependency on `uuid`

* Delint
This commit is contained in:
Michael Telatynski
2026-04-21 16:36:27 +00:00
committed by GitHub
parent 86ea6bd6b9
commit 354a05d89f
6 changed files with 3 additions and 13 deletions
+1 -2
View File
@@ -7,7 +7,6 @@ Please see LICENSE files in the repository root for full details.
*/
import { logger } from "matrix-js-sdk/src/logger";
import { v4 as uuidv4 } from "uuid";
/*
* Functionality for checking that only one instance is running at once
@@ -107,7 +106,7 @@ export function checkSessionLockFree(): boolean {
*/
export async function getSessionLock(onNewInstance: () => Promise<void>): Promise<boolean> {
/** unique ID for this session */
const sessionIdentifier = uuidv4();
const sessionIdentifier = window.crypto.randomUUID();
const prefixedLogger = logger.getChild(`getSessionLock[${sessionIdentifier}]`);