1
0
mirror of https://github.com/element-hq/element-web.git synced 2025-08-06 16:22:46 +03:00

Add config option to force verification (#29)

* Add config option to force verification

If this is set, users will not have the option to skip verification
on login (they will still be able to reload and continue unverified,
currently). Default off.

* Test for complete security dialog

* I hadn't set up prettier
This commit is contained in:
David Baker
2024-09-11 21:55:00 +01:00
committed by GitHub
parent 75918f5b18
commit a701e3afd7
4 changed files with 87 additions and 1 deletions

View File

@@ -108,6 +108,7 @@ export function createTestClient(): MatrixClient {
secretStorage: {
get: jest.fn(),
isStored: jest.fn().mockReturnValue(false),
},
store: {
@@ -128,6 +129,7 @@ export function createTestClient(): MatrixClient {
getDeviceVerificationStatus: jest.fn(),
resetKeyBackup: jest.fn(),
isEncryptionEnabledInRoom: jest.fn(),
getVerificationRequestsToDeviceInProgress: jest.fn().mockReturnValue([]),
}),
getPushActionsForEvent: jest.fn(),