Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 197b6ae

Browse files
committed
Make DeviceListener also update on megolm key in SSSS
The device listener checks for a megolm key stored in SSSS but didn't update when one was added, so the encryption upgrade toast would not disappear after the key was fixed by matrix-org/matrix-js-sdk#1776
1 parent 72acd5a commit 197b6ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DeviceListener.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ export default class DeviceListener {
160160
// which result in account data changes affecting checks below.
161161
if (
162162
ev.getType().startsWith('m.secret_storage.') ||
163-
ev.getType().startsWith('m.cross_signing.')
163+
ev.getType().startsWith('m.cross_signing.') ||
164+
ev.getType() === 'm.megolm_backup.v1'
164165
) {
165166
this._recheck();
166167
}

0 commit comments

Comments
 (0)