1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Make SSSS migration toast dismissable

This commit is contained in:
David Baker
2020-03-20 19:01:26 +00:00
parent 252972e159
commit ba1d245af9

View File

@ -157,6 +157,11 @@ export default class DeviceListener {
} }
return; return;
} else if (await cli.secretStorageKeyNeedsUpgrade()) { } else if (await cli.secretStorageKeyNeedsUpgrade()) {
if (this._dismissedThisDeviceToast) {
ToastStore.sharedInstance().dismissToast(THIS_DEVICE_TOAST_KEY);
return;
}
// FIXME: do we a different message? // FIXME: do we a different message?
ToastStore.sharedInstance().addOrReplaceToast({ ToastStore.sharedInstance().addOrReplaceToast({
key: THIS_DEVICE_TOAST_KEY, key: THIS_DEVICE_TOAST_KEY,