optionally patch _find function if it's not found
This commit is contained in:
parent
e527fe74fd
commit
022c87f3c7
1 changed files with 8 additions and 6 deletions
|
|
@ -38,12 +38,14 @@ exports.ExposeStore = (moduleRaidStr) => {
|
|||
window.Store.DownloadManager = window.mR.findModule('DownloadManager')[0].default;
|
||||
window.Store.Call = window.mR.findModule('CallCollection')[0].default;
|
||||
|
||||
if(!window.Store.Chat._find) {
|
||||
window.Store.Chat._find = e => {
|
||||
const target = window.Store.Chat.get(e);
|
||||
return target ? Promise.resolve(target) : Promise.resolve({
|
||||
id: e
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
exports.LoadUtils = () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue