fix: window.Store.getMsgInfo is not a function (#2651)
* Fix window.Store.getMsgInfo is not a function * Unneccery code removed
This commit is contained in:
parent
58fc39f97d
commit
d81b74324d
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue