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

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

Loading…
Cancel
Save