diff --git a/src/util/Injected.js b/src/util/Injected.js index 7697078..53b39bd 100644 --- a/src/util/Injected.js +++ b/src/util/Injected.js @@ -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; - window.Store.Chat._find = e => { - const target = window.Store.Chat.get(e); - return target ? Promise.resolve(target) : Promise.resolve({ - id: e - }); - }; + 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 = () => {