You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Check more account data in toast listener
Since any change to cross-signing or secret storage account data may affect the outcome of checks in the toast listener, we need to broaden the account data listener there to re-run for changes to all such bits of account data. Fixes https://github.com/vector-im/riot-web/issues/13048
This commit is contained in:
@ -90,8 +90,15 @@ export default class DeviceListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_onAccountData = (ev) => {
|
_onAccountData = (ev) => {
|
||||||
// User may have migrated SSSS to symmetric, in which case we can dismiss that toast
|
// User may have:
|
||||||
if (ev.getType().startsWith('m.secret_storage.key.')) {
|
// * 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();
|
this._recheck();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user