Skip to content

Commit

Permalink
fix: window.Store.getMsgInfo is not a function (pedroslopez#2651)
Browse files Browse the repository at this point in the history
* Fix window.Store.getMsgInfo is not a function

* Unneccery code removed
  • Loading branch information
shirser121 authored Dec 1, 2023
1 parent 58fc39f commit d81b743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/Injected.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit d81b743

Please sign in to comment.