Support MSC4287 m.key_backup stable prefix as well as the unstable prefix (#33034)
* Support MSC4287 m.key_backup stable prefix as well as the unstable prefix * Update comments to avoid talking about EX since this now applies more widely * Make comments about m.key_backup more helpful * Improve comment on recheckBackupDisabled * Explicitly say backup is disabled only if enabled is actually set to false
This commit is contained in:
@@ -120,7 +120,8 @@ test.describe("'Turn on key storage' toast", () => {
|
||||
test("should show toast if key storage is off but account data is missing", async ({ app, page }) => {
|
||||
// Given the backup is disabled but we didn't set account data saying that is expected
|
||||
await disableKeyBackup(app);
|
||||
await botClient.setAccountData("m.org.matrix.custom.backup_disabled", { disabled: false });
|
||||
await botClient.setAccountData("m.org.matrix.custom.backup_disabled", {} as any as { disabled: boolean });
|
||||
await botClient.setAccountData("m.key_backup", {} as any as { enabled: boolean });
|
||||
|
||||
// Wait for the account data setting to stick
|
||||
await new Promise((resolve) => setTimeout(resolve, 2000));
|
||||
|
||||
Reference in New Issue
Block a user