Merge pull request #4351 from matrix-org/jryans/check-more-account-data

Check more account data in toast listener
This commit is contained in:
J. Ryan Stinnett 2020-04-07 12:47:57 +01:00 committed by GitHub
commit b8a57aa6f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,8 +90,15 @@ export default class DeviceListener {
}
_onAccountData = (ev) => {
// User may have migrated SSSS to symmetric, in which case we can dismiss that toast
if (ev.getType().startsWith('m.secret_storage.key.')) {
// User may have:
// * migrated SSSS to symmetric
// * uploaded keys to secret storage
// * completed secret storage creation
// which result in account data changes affecting checks below.
if (
ev.getType().startsWith('m.secret_storage.') ||
ev.getType().startsWith('m.cross_signing.')
) {
this._recheck();
}
}