@vielhuber/wahelper 1.7.1 → 1.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ [![build status](https://github.com/vielhuber/wahelper/actions/workflows/ci.yml/badge.svg)](https://github.com/vielhuber/wahelper/actions)
1
2
  [![GitHub Tag](https://img.shields.io/github/v/tag/vielhuber/wahelper)](https://github.com/vielhuber/wahelper/tags)
2
3
  [![Code Style](https://img.shields.io/badge/code_style-psr--12-ff69b4.svg)](https://www.php-fig.org/psr/psr-12/)
3
4
  [![License](https://img.shields.io/github/license/vielhuber/wahelper)](https://github.com/vielhuber/wahelper/blob/main/LICENSE.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vielhuber/wahelper",
3
- "version": "1.7.1",
3
+ "version": "1.7.3",
4
4
  "description": "Lightweight whatsapp integration layer.",
5
5
  "main": "wahelper.js",
6
6
  "files": [
@@ -646,8 +646,8 @@ export default class wahelperDaemon {
646
646
  this.sock = makeWASocket({
647
647
  auth: state,
648
648
  logger: P({ level: 'silent' }, P.destination(2)),
649
- // sync full history always on pairing and reconnects
650
- syncFullHistory: true,
649
+ // sync full history only during initial pairing and its required reconnect
650
+ syncFullHistory: !state.creds.registered || this.isFirstRun,
651
651
  version,
652
652
  browser: Browsers.windows('Desktop')
653
653
  });