fix for findImpl (#2390)
This commit is contained in:
parent
9a6466edbc
commit
9b827541e6
1 changed files with 6 additions and 0 deletions
|
|
@ -80,6 +80,12 @@ exports.ExposeStore = (moduleRaidStr) => {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window.mR.findModule('ChatCollection')[0] && window.mR.findModule('ChatCollection')[0].ChatCollection) {
|
||||||
|
if (typeof window.mR.findModule('ChatCollection')[0].ChatCollection.findImpl === 'undefined' && typeof window.mR.findModule('ChatCollection')[0].ChatCollection._find != 'undefined') {
|
||||||
|
window.mR.findModule('ChatCollection')[0].ChatCollection.findImpl = window.mR.findModule('ChatCollection')[0].ChatCollection._find;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// TODO remove these once everybody has been updated to WWebJS with legacy sessions removed
|
// TODO remove these once everybody has been updated to WWebJS with legacy sessions removed
|
||||||
const _linkPreview = window.mR.findModule('queryLinkPreview');
|
const _linkPreview = window.mR.findModule('queryLinkPreview');
|
||||||
if (_linkPreview && _linkPreview[0] && _linkPreview[0].default) {
|
if (_linkPreview && _linkPreview[0] && _linkPreview[0].default) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue