diff --git a/src/util/Injected.js b/src/util/Injected.js index 7109f7d..d6ebeeb 100644 --- a/src/util/Injected.js +++ b/src/util/Injected.js @@ -61,7 +61,7 @@ exports.ExposeStore = (moduleRaidStr) => { /* eslint-disable no-undef, no-cond-assign */ window.Store.QueryExist = ((m = window.mR.findModule('queryExists')[0]) ? m.queryExists : window.mR.findModule('queryExist')[0].queryWidExists); window.Store.ReplyUtils = (m = window.mR.findModule('canReplyMsg')).length > 0 && m[0]; - window.Store.getMsgInfo = m = window.mR.findModule('sendQueryMsgInfo')[0] ? m.sendQueryMsgInfo : window.mR.findModule('queryMsgInfo')[0].queryMsgInfo; + window.Store.getMsgInfo = (window.mR.findModule('sendQueryMsgInfo')[0] || {}).sendQueryMsgInfo || window.mR.findModule('queryMsgInfo')[0].queryMsgInfo; /* eslint-enable no-undef, no-cond-assign */ window.Store.Settings = {