mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 15:45:39 +01:00
Replace typescript compiler with native tsgo compiler
This commit is contained in:
@@ -224,9 +224,10 @@ export function updateCallLinkAdminKeyByRoomId(
|
||||
}
|
||||
|
||||
function assertRoomIdMatchesRootKey(roomId: string, rootKey: string): void {
|
||||
const derivedRoomId = Bytes.toHex(
|
||||
CallLinkRootKey.parse(rootKey).deriveRoomId()
|
||||
);
|
||||
const parsedRoomId = CallLinkRootKey.parse(rootKey).deriveRoomId();
|
||||
// @ts-expect-error needs ringrtc update
|
||||
const derivedRoomIdBytes: Uint8Array<ArrayBuffer> = parsedRoomId;
|
||||
const derivedRoomId = Bytes.toHex(derivedRoomIdBytes);
|
||||
strictAssert(
|
||||
roomId === derivedRoomId,
|
||||
'passed roomId must match roomId derived from root key'
|
||||
|
||||
Reference in New Issue
Block a user