mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Remove labs option to cache 'passphrase'
(which actually meant SSSS secrets) Fixes https://github.com/vector-im/riot-web/issues/1392
This commit is contained in:
parent
803b7bb30f
commit
54e235b0b9
3 changed files with 1 additions and 10 deletions
|
@ -34,10 +34,7 @@ let secretStorageBeingAccessed = false;
|
||||||
let passphraseOnlyOption = null;
|
let passphraseOnlyOption = null;
|
||||||
|
|
||||||
function isCachingAllowed() {
|
function isCachingAllowed() {
|
||||||
return (
|
return secretStorageBeingAccessed;
|
||||||
secretStorageBeingAccessed ||
|
|
||||||
SettingsStore.getValue("keepSecretStoragePassphraseForSession")
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class AccessCancelledError extends Error {
|
export class AccessCancelledError extends Error {
|
||||||
|
|
|
@ -66,7 +66,6 @@ export default class LabsUserSettingsTab extends React.Component {
|
||||||
<SettingsFlag name={"showHiddenEventsInTimeline"} level={SettingLevel.DEVICE} />
|
<SettingsFlag name={"showHiddenEventsInTimeline"} level={SettingLevel.DEVICE} />
|
||||||
<SettingsFlag name={"lowBandwidth"} level={SettingLevel.DEVICE} />
|
<SettingsFlag name={"lowBandwidth"} level={SettingLevel.DEVICE} />
|
||||||
<SettingsFlag name={"sendReadReceipts"} level={SettingLevel.ACCOUNT} />
|
<SettingsFlag name={"sendReadReceipts"} level={SettingLevel.ACCOUNT} />
|
||||||
<SettingsFlag name={"keepSecretStoragePassphraseForSession"} level={SettingLevel.DEVICE} />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -521,11 +521,6 @@ export const SETTINGS = {
|
||||||
displayName: _td("Enable message search in encrypted rooms"),
|
displayName: _td("Enable message search in encrypted rooms"),
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
"keepSecretStoragePassphraseForSession": {
|
|
||||||
supportedLevels: ['device', 'config'],
|
|
||||||
displayName: _td("Keep recovery passphrase in memory for this session"),
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
"crawlerSleepTime": {
|
"crawlerSleepTime": {
|
||||||
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS,
|
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS,
|
||||||
displayName: _td("How fast should messages be downloaded."),
|
displayName: _td("How fast should messages be downloaded."),
|
||||||
|
|
Loading…
Reference in a new issue