Add labs option to exclude unverified devices (#92)

Add a labs option which will, when set, switch into the "invisible crypto"
mode of refusing to send keys to, or decrypt messages from, devices that have
not been signed by their owner.
This commit is contained in:
Richard van der Hoff 2024-09-30 11:29:14 +01:00 committed by GitHub
parent 8962e8cdd3
commit be2c1fcf64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 89 additions and 0 deletions

View file

@ -131,6 +131,7 @@ export function createTestClient(): MatrixClient {
resetKeyBackup: jest.fn(),
isEncryptionEnabledInRoom: jest.fn(),
getVerificationRequestsToDeviceInProgress: jest.fn().mockReturnValue([]),
setDeviceIsolationMode: jest.fn(),
}),
getPushActionsForEvent: jest.fn(),