Skip to content

Commit

Permalink
feat(e2ee) add ability to disable the feature
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Oct 28, 2024
1 parent 5d53ecd commit 793f7ce
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/e2ee/E2EEncryption.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ export class E2EEncryption {
return false;
}

return !(config.testing && config.testing.disableE2EE)
&& (browser.supportsInsertableStreams()
|| (config.enableEncodedTransformSupport && browser.supportsEncodedTransform()));
if (e2ee.disabled || config.testing?.disableE2EE) {
return false;
}

return browser.supportsInsertableStreams()
|| (config.enableEncodedTransformSupport && browser.supportsEncodedTransform());
}

/**
Expand Down

0 comments on commit 793f7ce

Please sign in to comment.