apply changes from review

pull/21833/head
Hubert Chathi 2020-10-02 17:43:49 -04:00
parent bd9cebe35d
commit c1765c857e
2 changed files with 2 additions and 2 deletions

View File

@ -473,7 +473,7 @@ async function _doSetLoggedIn(credentials, clearStorage) {
MatrixClientPeg.replaceUsingCreds(credentials);
const client = MatrixClientPeg.get();
if (credentials.freshLogin) {
if (credentials.freshLogin && SettingsStore.getValue("feature_dehydration")) {
// If we just logged in, try to rehydrate a device instead of using a
// new device. If it succeeds, we'll get a new device ID, so make sure
// we persist that ID to localStorage

View File

@ -188,7 +188,7 @@ export const SETTINGS: {[setting: string]: ISetting} = {
},
"feature_dehydration": {
isFeature: true,
displayName: _td("Offline encrypted messaging using dehydrated devices."),
displayName: _td("Offline encrypted messaging using dehydrated devices"),
supportedLevels: LEVELS_FEATURE,
default: false,
},