Workaround for #363 Multiple open sessions bug

This doesn't solve the problem in the general case, but should at least
unbreak registration.

// FREEBIE
This commit is contained in:
lilia 2015-09-30 18:47:41 -07:00
parent 876e11c19b
commit 1c306df61f

View file

@ -101,8 +101,9 @@
messageReceiver.addEventListener('contactsync', onContactSyncComplete);
if (firstRun === true && textsecure.storage.user.getDeviceId() != '1') {
textsecure.messaging.sendRequestContactSyncMessage();
textsecure.messaging.sendRequestGroupSyncMessage();
textsecure.messaging.sendRequestContactSyncMessage().then(function() {
textsecure.messaging.sendRequestGroupSyncMessage();
});
}
}