mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
Merge pull request #4351 from matrix-org/jryans/check-more-account-data
Check more account data in toast listener
This commit is contained in:
commit
b8a57aa6f2
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user