Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Remove labs option to cache 'passphrase'
Browse files Browse the repository at this point in the history
(which actually meant SSSS secrets)

Fixes element-hq/element-web#1392
  • Loading branch information
dbkr committed Jun 18, 2020
1 parent 803b7bb commit 54e235b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
5 changes: 1 addition & 4 deletions src/CrossSigningManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ let secretStorageBeingAccessed = false;
let passphraseOnlyOption = null;

function isCachingAllowed() {
return (
secretStorageBeingAccessed ||
SettingsStore.getValue("keepSecretStoragePassphraseForSession")
);
return secretStorageBeingAccessed;
}

export class AccessCancelledError extends Error {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export default class LabsUserSettingsTab extends React.Component {
<SettingsFlag name={"showHiddenEventsInTimeline"} level={SettingLevel.DEVICE} />
<SettingsFlag name={"lowBandwidth"} level={SettingLevel.DEVICE} />
<SettingsFlag name={"sendReadReceipts"} level={SettingLevel.ACCOUNT} />
<SettingsFlag name={"keepSecretStoragePassphraseForSession"} level={SettingLevel.DEVICE} />
</div>
</div>
);
Expand Down
5 changes: 0 additions & 5 deletions src/settings/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,11 +521,6 @@ export const SETTINGS = {
displayName: _td("Enable message search in encrypted rooms"),
default: true,
},
"keepSecretStoragePassphraseForSession": {
supportedLevels: ['device', 'config'],
displayName: _td("Keep recovery passphrase in memory for this session"),
default: false,
},
"crawlerSleepTime": {
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS,
displayName: _td("How fast should messages be downloaded."),
Expand Down

0 comments on commit 54e235b

Please sign in to comment.