fix: patch find function to get chats

This commit is contained in:
Pedro Lopez
2021-09-01 09:16:12 -04:00
parent 7597608f9d
commit e527fe74fd

View File

@@ -37,6 +37,13 @@ exports.ExposeStore = (moduleRaidStr) => {
window.Store.QueryProduct = window.mR.findModule('queryProduct')[0];
window.Store.DownloadManager = window.mR.findModule('DownloadManager')[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 = () => {