You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-25 17:02:04 +03:00
Use unified function to check cross-signing is ready
Fixes mismatches where the Cross signing panel would say cross signing was not ready but no toasts would appear. Fixes https://github.com/vector-im/riot-web/issues/12796 Fixes https://github.com/vector-im/riot-web/issues/12798 Requires https://github.com/matrix-org/matrix-js-sdk/pull/1279
This commit is contained in:
@ -107,7 +107,10 @@ export default class DeviceListener {
|
||||
) return;
|
||||
|
||||
if (!cli.isCryptoEnabled()) return;
|
||||
if (!cli.getCrossSigningId()) {
|
||||
|
||||
const crossSigningReady = await cli.crossSigningReady();
|
||||
|
||||
if (!crossSigningReady) {
|
||||
if (this._dismissedThisDeviceToast) {
|
||||
ToastStore.sharedInstance().dismissToast(THIS_DEVICE_TOAST_KEY);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user