Files
Sable/src/app/utils/matrix-crypto.ts
T
hazre 71425f8644 refactor: route matrix-sdk imports through $types boundary
Centralize Matrix SDK imports behind a local compatibility module, migrate matrix subpath imports to the boundary, and switch to the $types alias. Upgrade TypeScript to latest so matrix-js-sdk typings resolve correctly before the next cleanup phase.
2026-02-14 17:24:46 +01:00

15 lines
347 B
TypeScript

import { CryptoApi } from '$types/matrix-sdk';
export const verifiedDevice = async (
api: CryptoApi,
userId: string,
deviceId: string
): Promise<boolean | null> => {
const status = await api.getDeviceVerificationStatus(userId, deviceId);
if (!status) return null;
const verified = status.crossSigningVerified;
return verified;
};