Fix function issue.

pull/40/head
Mikunj 7 years ago
parent 4d3fb17e61
commit c0a21f60c0

@ -317,7 +317,7 @@
identityKeyPair.pubKey identityKeyPair.pubKey
); );
return Promise.resolve().then(() => { return Promise.resolve().then(async () => {
await Promise.all([ await Promise.all([
textsecure.storage.remove('identityKey'), textsecure.storage.remove('identityKey'),
textsecure.storage.remove('signaling_key'), textsecure.storage.remove('signaling_key'),
@ -352,7 +352,7 @@
'read-receipt-setting', 'read-receipt-setting',
Boolean(readReceipts) Boolean(readReceipts)
); );
await textsecure.storage.user.setNumberAndDeviceId(pubKeyString, 1); await textsecure.storage.user.setNumberAndDeviceId(pubKeyString, 1);
}); });
}, },

Loading…
Cancel
Save