Update BDFDB.max.js
This commit is contained in:
parent
f4620e66e9
commit
97f2dfd48e
|
@ -1659,6 +1659,17 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
|
|||
e.thisObject.BDFDBforceRenderTimeout = true;
|
||||
setTimeout(() => {delete e.thisObject.BDFDBforceRenderTimeout;}, 1000);
|
||||
}
|
||||
if (e.thisObject.props.message && !e.thisObject.props.target) {
|
||||
const messageswrap = document.querySelector(BDFDB.dotCN.messages);
|
||||
if (messageswrap) {
|
||||
var messages = BDFDB.getOwnerInstance({node:messageswrap, name:"Message", all:true, noCopies:true, depth:99999999, time:99999999});
|
||||
for (let i in messages) if (e.thisObject.props.message.id == messages[i].props.message.id) {
|
||||
target = BDFDB.React.findDOMNodeSafe(messages[i]);
|
||||
if (target) e.thisObject.props.target = target
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}});
|
||||
}
|
||||
};
|
||||
|
@ -6140,8 +6151,7 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
|
|||
V2C_ThemeCard: ['componentDidMount','componentDidUpdate'],
|
||||
UserPopout: ['componentDidMount'],
|
||||
UserProfile: ['componentDidMount'],
|
||||
Message: ['componentDidMount','componentDidUpdate','render'],
|
||||
MessageOptionPopout: 'componentDidMount'
|
||||
Message: ['componentDidMount','componentDidUpdate','render']
|
||||
};
|
||||
|
||||
BDFDB.WebModules.patch(LibraryModules.GuildStore, 'getGuild', BDFDB, {after: e => {
|
||||
|
@ -6252,22 +6262,6 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
|
|||
}
|
||||
};
|
||||
|
||||
BDFDB.processMessageOptionPopout = function (instance, wrapper, returnvalue) {
|
||||
var target = BDFDB.getReactValue(instance, "_reactInternalFiber.return.return.return.memoizedProps.target");
|
||||
if (target) instance.props.target = target;
|
||||
else if (instance.props.message) {
|
||||
const messageswrap = document.querySelector(BDFDB.dotCN.messages);
|
||||
if (messageswrap) {
|
||||
var messages = BDFDB.getOwnerInstance({node:messageswrap, name:"Message", all:true, noCopies:true, depth:99999999, time:99999999});
|
||||
for (let i in messages) if (instance.props.message.id == messages[i].props.message.id) {
|
||||
target = BDFDB.React.findDOMNodeSafe(messages[i]);
|
||||
if (target) instance.props.target = target
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
BDFDB.WebModules.patchModules(BDFDB);
|
||||
|
||||
BDFDB.WebModules.forceAllUpdates(BDFDB);
|
||||
|
|
Loading…
Reference in New Issue