fix: patch find function to get chats
This commit is contained in:
parent
7597608f9d
commit
e527fe74fd
1 changed files with 7 additions and 0 deletions
|
|
@ -37,6 +37,13 @@ exports.ExposeStore = (moduleRaidStr) => {
|
||||||
window.Store.QueryProduct = window.mR.findModule('queryProduct')[0];
|
window.Store.QueryProduct = window.mR.findModule('queryProduct')[0];
|
||||||
window.Store.DownloadManager = window.mR.findModule('DownloadManager')[0].default;
|
window.Store.DownloadManager = window.mR.findModule('DownloadManager')[0].default;
|
||||||
window.Store.Call = window.mR.findModule('CallCollection')[0].default;
|
window.Store.Call = window.mR.findModule('CallCollection')[0].default;
|
||||||
|
|
||||||
|
window.Store.Chat._find = e => {
|
||||||
|
const target = window.Store.Chat.get(e);
|
||||||
|
return target ? Promise.resolve(target) : Promise.resolve({
|
||||||
|
id: e
|
||||||
|
});
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.LoadUtils = () => {
|
exports.LoadUtils = () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue