es2024 and array buffer adaptions

This commit is contained in:
Timo
2025-05-14 18:17:20 +02:00
parent 7f90a0b913
commit c76fa6633d
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ export class MatrixKeyProvider extends BaseKeyProvider {
encryptionKeyIndex: number,
participantId: string,
): void => {
createKeyMaterialFromBuffer(encryptionKey).then(
createKeyMaterialFromBuffer(encryptionKey.buffer as ArrayBuffer).then(
(keyMaterial) => {
this.onSetEncryptionKey(keyMaterial, participantId, encryptionKeyIndex);

View File

@@ -3,7 +3,7 @@
"target": "es2022",
"module": "es2022",
"jsx": "react-jsx",
"lib": ["es2022", "dom", "dom.iterable"],
"lib": ["es2024", "dom", "dom.iterable"],
// From Matrix-JS-SDK
"strict": true,