On startup, if we've just upgraded to a new version, contact sync
This commit is contained in:
parent
59d58aaab5
commit
3b8f934741
1 changed files with 8 additions and 10 deletions
|
@ -743,17 +743,15 @@
|
||||||
PASSWORD
|
PASSWORD
|
||||||
);
|
);
|
||||||
|
|
||||||
// Because v0.43.2 introduced a bug that lost contact details, v0.43.4 introduces
|
// On startup after upgrading to a new version, request a contact sync
|
||||||
// a one-time contact sync to restore all lost contact/group information. We
|
// (but only if we're not the primary device)
|
||||||
// disable this checking if a user is first registering.
|
if (
|
||||||
const key = 'chrome-contact-sync-v0.43.4';
|
!firstRun &&
|
||||||
if (!storage.get(key)) {
|
newVersion &&
|
||||||
storage.put(key, true);
|
|
||||||
|
|
||||||
// eslint-disable-next-line eqeqeq
|
// eslint-disable-next-line eqeqeq
|
||||||
if (!firstRun && textsecure.storage.user.getDeviceId() != '1') {
|
textsecure.storage.user.getDeviceId() != '1'
|
||||||
window.getSyncRequest();
|
) {
|
||||||
}
|
window.getSyncRequest();
|
||||||
}
|
}
|
||||||
|
|
||||||
const deviceId = textsecure.storage.user.getDeviceId();
|
const deviceId = textsecure.storage.user.getDeviceId();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue