restoreFromSeed restores groups from first configMessage got

pull/1528/head
Audric Ackermann 4 years ago
parent 0a8335b125
commit 78257037bb
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -143,6 +143,10 @@ export async function signUp(signUpDetails: {
'english',
trimName
);
await createOrUpdateItem({
id: 'hasSyncedInitialConfigurationItem',
value: true,
});
trigger('openInbox');
} catch (e) {
await resetRegistration();
@ -186,10 +190,7 @@ export async function signInWithRecovery(signInDetails: {
try {
await resetRegistration();
await window.setPassword(password);
await createOrUpdateItem({
id: 'hasSyncedInitialConfigurationItem',
value: true,
});
await AccountManager.registerSingleDevice(
userRecoveryPhrase,
'english',

@ -44,7 +44,12 @@ async function handleOurProfileUpdate(
};
await updateProfile(ourConversation, lokiProfile, profileKey);
UserUtils.setLastProfileUpdateTimestamp(_.toNumber(sentAt));
trigger(configurationMessageReceived, displayName);
// do not trigger a signin by linking if the display name is empty
if (displayName) {
trigger(configurationMessageReceived, displayName);
} else {
window.log.warn('Got a configuration message but the display name is empty');
}
}
}

Loading…
Cancel
Save