This commit is contained in:
Mirco Wittrien 2023-04-27 09:03:00 +02:00
parent 2a10ca8256
commit 6364e769fb
2 changed files with 5 additions and 2 deletions

View File

@ -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 = _ => {};
}; };

View File

@ -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"]},