1
0
mirror of https://github.com/element-hq/element-web.git synced 2025-08-08 03:42:14 +03:00

Cache the key backup status whether enabled or not (#29886)

This commit is contained in:
Andy Balaam
2025-05-07 12:24:43 +01:00
committed by GitHub
parent 36d25da288
commit 6063209fff
2 changed files with 31 additions and 11 deletions

View File

@@ -445,7 +445,9 @@ describe("DeviceListener", () => {
it("dispatches keybackup event when key backup is not enabled", async () => {
mockCrypto.getActiveSessionBackupVersion.mockResolvedValue(null);
await createAndStart();
expect(mockDispatcher.dispatch).toHaveBeenCalledWith({ action: Action.ReportKeyBackupNotEnabled });
expect(mockDispatcher.dispatch).toHaveBeenCalledWith({
action: Action.ReportKeyBackupNotEnabled,
});
});
it("does not check key backup status again after check is complete", async () => {