Add hasCrossSigninAccountData function

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2022-03-31 14:41:19 +05:30
parent d978776993
commit 4bbdf3196e

View file

@ -174,3 +174,9 @@ export function isCrossVerified(deviceId) {
return false;
}
}
export function hasCrossSigninAccountData() {
const mx = initMatrix.matrixClient;
const masterKeyData = mx.getAccountData('m.cross_signing.master');
return !!masterKeyData;
}