Merge pull request #4336 from matrix-org/bwindels/fixverifytoastaftercompletesecurity

Fix: dismiss setup encryption toast if cross-signing is ready
This commit is contained in:
Bruno Windels 2020-04-03 10:27:32 +00:00 committed by GitHub
commit 9407df3da0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,6 +165,9 @@ export default class DeviceListener {
props: {kind: 'upgrade_ssss'},
component: sdk.getComponent("toasts.SetupEncryptionToast"),
});
} else {
// cross-signing is ready, and we don't need to upgrade encryption
ToastStore.sharedInstance().dismissToast(THIS_DEVICE_TOAST_KEY);
}
}