dismiss setup encryption toast if cross-signing is ready

This commit is contained in:
Bruno Windels 2020-04-02 16:07:55 +02:00
parent 5cce31b39e
commit ee61a3aff6

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);
}
}