stuff
This commit is contained in:
parent
2a10ca8256
commit
6364e769fb
|
@ -4020,7 +4020,7 @@ module.exports = (_ => {
|
||||||
if (!child) return false;
|
if (!child) return false;
|
||||||
let props = child.stateNode ? child.stateNode.props : child.props;
|
let props = child.stateNode ? child.stateNode.props : child.props;
|
||||||
if (!props) return false;
|
if (!props) return false;
|
||||||
return config.id && config.id.some(key => props.id == key) || config.label && config.label.some(key => props.label == key);
|
return config.id && config.id.some(key => key == "devmode-copy-id" ? typeof props.id == "string" && props.id.startsWith(key) : props.id == key) || config.label && config.label.some(key => props.label == key);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -8151,6 +8151,9 @@ module.exports = (_ => {
|
||||||
Internal.processMemberListItem = function (e) {
|
Internal.processMemberListItem = function (e) {
|
||||||
Internal._processAvatarMount(e.instance.props.user, e.node.querySelector(BDFDB.dotCN.avatarwrapper), e.node);
|
Internal._processAvatarMount(e.instance.props.user, e.node.querySelector(BDFDB.dotCN.avatarwrapper), e.node);
|
||||||
};
|
};
|
||||||
|
Internal.processMenu = function (e) {
|
||||||
|
if (!e.instance.props.children || BDFDB.ArrayUtils.is(e.instance.props.children) && !e.instance.props.children.length) Internal.LibraryModules.ContextMenuUtils.closeContextMenu();
|
||||||
|
};
|
||||||
Internal.processMessageActionsContextMenu = function (e) {
|
Internal.processMessageActionsContextMenu = function (e) {
|
||||||
e.instance.props.updatePosition = _ => {};
|
e.instance.props.updatePosition = _ => {};
|
||||||
};
|
};
|
||||||
|
|
|
@ -566,7 +566,7 @@
|
||||||
"TypingUsers": {"strings": ["Easing.quad", ".emphasizeSlowmodeCooldown", ".sequence("]},
|
"TypingUsers": {"strings": ["Easing.quad", ".emphasizeSlowmodeCooldown", ".sequence("]},
|
||||||
"UnavailableGuildsButton": {"strings": [".errorInner", ".guildsError", "Messages.PARTIAL_OUTAGE"]},
|
"UnavailableGuildsButton": {"strings": [".errorInner", ".guildsError", "Messages.PARTIAL_OUTAGE"]},
|
||||||
"UnreadDMs": {"strings": ["getMutablePrivateChannels", "selectedVoiceGuildId", ".selectedVoiceChannelId"]},
|
"UnreadDMs": {"strings": ["getMutablePrivateChannels", "selectedVoiceGuildId", ".selectedVoiceChannelId"]},
|
||||||
"UseCopyIdItem": {"strings": ["\"devmode-copy-id\""]},
|
"UseCopyIdItem": {"strings": ["\"devmode-copy-id"]},
|
||||||
"UserBadges": {"strings": [".PROFILE_USER_BADGES", "SIZE_24"]},
|
"UserBadges": {"strings": [".PROFILE_USER_BADGES", "SIZE_24"]},
|
||||||
"UserBanner": {"strings": [".showPremiumBadgeUpsell", ".isPremiumAtLeast", ".SETTINGS"]},
|
"UserBanner": {"strings": [".showPremiumBadgeUpsell", ".isPremiumAtLeast", ".SETTINGS"]},
|
||||||
"UserBannerMask": {"strings": [".overrideAvatarDecorationURL", "hasBannerImage:", "foreignObject"]},
|
"UserBannerMask": {"strings": [".overrideAvatarDecorationURL", "hasBannerImage:", "foreignObject"]},
|
||||||
|
|
Loading…
Reference in New Issue