You've already forked element-web
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:
@@ -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 () => {
|
||||
|
Reference in New Issue
Block a user