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 +1 -1
- package/src/util/Injected.js +6 -0
package/package.json
CHANGED
package/src/util/Injected.js
CHANGED
|
@@ -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) {
|