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

Commit

Permalink
apply changes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
uhoreg committed Oct 2, 2020
1 parent bd9cebe commit c1765c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Lifecycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/settings/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit c1765c8

Please sign in to comment.