Update appservice.ts

This commit is contained in:
Will Hunt 2023-01-19 10:33:52 +00:00 committed by GitHub
parent 73f0d55741
commit 03d6ed21ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,8 +40,8 @@ export function getAppservice(config: BridgeConfig, registration: IAppserviceReg
intentOptions: { intentOptions: {
// If encryption support is enabled, we cannot expire Intent objects or we risk // If encryption support is enabled, we cannot expire Intent objects or we risk
// a resource contention on the Sled DB. // a resource contention on the Sled DB.
maxCached: config.encryption && 0, maxCached: config.encryption ? 0 : undefined,
maxAgeMs: config.encryption && 0, maxAgeMs: config.encryption ? 0 : undefined,
encryption: !!config.encryption, encryption: !!config.encryption,
}, },
cryptoStorage: cryptoStorage, cryptoStorage: cryptoStorage,
@ -50,4 +50,4 @@ export function getAppservice(config: BridgeConfig, registration: IAppserviceReg
Metrics.registerMatrixSdkMetrics(appservice); Metrics.registerMatrixSdkMetrics(appservice);
return {appservice, storage}; return {appservice, storage};
} }