Merge pull request #4789 from matrix-org/dbkr/remove_ssss_secret_cache_option
Remove labs option to cache 'passphrase'pull/21833/head
commit
27a9a7b4c1
|
@ -20,7 +20,6 @@ import {MatrixClientPeg} from './MatrixClientPeg';
|
||||||
import { deriveKey } from 'matrix-js-sdk/src/crypto/key_passphrase';
|
import { deriveKey } from 'matrix-js-sdk/src/crypto/key_passphrase';
|
||||||
import { decodeRecoveryKey } from 'matrix-js-sdk/src/crypto/recoverykey';
|
import { decodeRecoveryKey } from 'matrix-js-sdk/src/crypto/recoverykey';
|
||||||
import { _t } from './languageHandler';
|
import { _t } from './languageHandler';
|
||||||
import SettingsStore from './settings/SettingsStore';
|
|
||||||
import {encodeBase64} from "matrix-js-sdk/src/crypto/olmlib";
|
import {encodeBase64} from "matrix-js-sdk/src/crypto/olmlib";
|
||||||
|
|
||||||
// This stores the secret storage private keys in memory for the JS SDK. This is
|
// This stores the secret storage private keys in memory for the JS SDK. This is
|
||||||
|
@ -34,10 +33,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>
|
||||||
);
|
);
|
||||||
|
|
|
@ -480,7 +480,6 @@
|
||||||
"Send read receipts for messages (requires compatible homeserver to disable)": "Send read receipts for messages (requires compatible homeserver to disable)",
|
"Send read receipts for messages (requires compatible homeserver to disable)": "Send read receipts for messages (requires compatible homeserver to disable)",
|
||||||
"Show previews/thumbnails for images": "Show previews/thumbnails for images",
|
"Show previews/thumbnails for images": "Show previews/thumbnails for images",
|
||||||
"Enable message search in encrypted rooms": "Enable message search in encrypted rooms",
|
"Enable message search in encrypted rooms": "Enable message search in encrypted rooms",
|
||||||
"Keep recovery passphrase in memory for this session": "Keep recovery passphrase in memory for this session",
|
|
||||||
"How fast should messages be downloaded.": "How fast should messages be downloaded.",
|
"How fast should messages be downloaded.": "How fast should messages be downloaded.",
|
||||||
"Manually verify all remote sessions": "Manually verify all remote sessions",
|
"Manually verify all remote sessions": "Manually verify all remote sessions",
|
||||||
"IRC display name width": "IRC display name width",
|
"IRC display name width": "IRC display name width",
|
||||||
|
|
|
@ -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 New Issue