Remove references to matrix-js-sdk/src/crypto/verification (#12365)

All this stuff is deprecated and has better alternatives now.
This commit is contained in:
Richard van der Hoff 2024-03-25 17:44:45 +00:00 committed by GitHub
parent ef2bd7ae04
commit 157ca48dff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 30 additions and 35 deletions

View file

@ -15,7 +15,7 @@ limitations under the License.
*/
import { User, MatrixClient, RoomMember } from "matrix-js-sdk/src/matrix";
import { verificationMethods as VerificationMethods } from "matrix-js-sdk/src/crypto";
import { VerificationMethod } from "matrix-js-sdk/src/types";
import { CrossSigningKey, VerificationRequest } from "matrix-js-sdk/src/crypto-api";
import dis from "./dispatcher/dispatcher";
@ -61,7 +61,7 @@ export async function verifyDevice(matrixClient: MatrixClient, user: User, devic
const verificationRequestPromise = matrixClient.legacyDeviceVerification(
user.userId,
device.deviceId,
VerificationMethods.SAS,
VerificationMethod.Sas,
);
setRightPanel({ member: user, verificationRequestPromise });
} else if (action === "legacy") {