whatsapp-web.js 1.22.2-alpha.2 → 1.22.2-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatsapp-web.js",
3
- "version": "1.22.2-alpha.2",
3
+ "version": "1.22.2-alpha.3",
4
4
  "description": "Library for interacting with the WhatsApp Web API ",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
@@ -62,7 +62,6 @@ exports.ExposeStore = (moduleRaidStr) => {
62
62
  /* eslint-disable no-undef, no-cond-assign */
63
63
  window.Store.QueryExist = ((m = window.mR.findModule('queryExists')[0]) ? m.queryExists : window.mR.findModule('queryExist')[0].queryWidExists);
64
64
  window.Store.ReplyUtils = (m = window.mR.findModule('canReplyMsg')).length > 0 && m[0];
65
- if ((m = window.mR.findModule('ChatCollection')[0]) && m.ChatCollection && typeof m.ChatCollection.findImpl === 'undefined' && typeof m.ChatCollection._find !== 'undefined') m.ChatCollection.findImpl = m.ChatCollection._find;
66
65
  /* eslint-enable no-undef, no-cond-assign */
67
66
 
68
67
  window.Store.StickerTools = {
@@ -100,6 +99,9 @@ exports.ExposeStore = (moduleRaidStr) => {
100
99
  });
101
100
  };
102
101
  }
102
+
103
+ // eslint-disable-next-line no-undef
104
+ if ((m = window.mR.findModule('ChatCollection')[0]) && m.ChatCollection && typeof m.ChatCollection.findImpl === 'undefined' && typeof m.ChatCollection._find !== 'undefined') m.ChatCollection.findImpl = m.ChatCollection._find;
103
105
 
104
106
  // TODO remove these once everybody has been updated to WWebJS with legacy sessions removed
105
107
  const _linkPreview = window.mR.findModule('queryLinkPreview');