feat: control auto-loading of files + fixed method setDisplayName (#2295)
* fixing the setPushname function * Adding functions that change the media autoloading * Checking against raw data * fixed * fixed merge * ESLint * Update src/util/Injected.js Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com> --------- Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com> Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
This commit is contained in:
parent
104b05d36f
commit
04175063ce
3 changed files with 88 additions and 2 deletions
|
|
@ -58,6 +58,10 @@ exports.ExposeStore = (moduleRaidStr) => {
|
|||
window.Store.LidUtils = window.mR.findModule('getCurrentLid')[0];
|
||||
window.Store.WidToJid = window.mR.findModule('widToUserJid')[0];
|
||||
window.Store.JidToWid = window.mR.findModule('userJidToUserWid')[0];
|
||||
window.Store.Settings = {
|
||||
...window.mR.findModule('ChatlistPanelState')[0],
|
||||
setPushname: window.mR.findModule((m) => m.setPushname && !m.ChatlistPanelState)[0].setPushname
|
||||
};
|
||||
|
||||
/* eslint-disable no-undef, no-cond-assign */
|
||||
window.Store.QueryExist = ((m = window.mR.findModule('queryExists')[0]) ? m.queryExists : window.mR.findModule('queryExist')[0].queryWidExists);
|
||||
|
|
|
|||
Loading…
Reference in a new issue