whatsapp-web.js 1.21.1-alpha.1 → 2.0.0-alpha.0

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.21.1-alpha.1",
3
+ "version": "2.0.0-alpha.0",
4
4
  "description": "Library for interacting with the WhatsApp Web API ",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
@@ -80,6 +80,12 @@ exports.ExposeStore = (moduleRaidStr) => {
80
80
  };
81
81
  }
82
82
 
83
+ if (window.mR.findModule('ChatCollection')[0] && window.mR.findModule('ChatCollection')[0].ChatCollection) {
84
+ if (typeof window.mR.findModule('ChatCollection')[0].ChatCollection.findImpl === 'undefined' && typeof window.mR.findModule('ChatCollection')[0].ChatCollection._find != 'undefined') {
85
+ window.mR.findModule('ChatCollection')[0].ChatCollection.findImpl = window.mR.findModule('ChatCollection')[0].ChatCollection._find;
86
+ }
87
+ }
88
+
83
89
  // TODO remove these once everybody has been updated to WWebJS with legacy sessions removed
84
90
  const _linkPreview = window.mR.findModule('queryLinkPreview');
85
91
  if (_linkPreview && _linkPreview[0] && _linkPreview[0].default) {