This commit is contained in:
Mirco Wittrien 2023-11-01 09:34:55 +01:00
parent 053f8d20ef
commit 1a59aabcd4
2 changed files with 8 additions and 7 deletions

View File

@ -381,7 +381,7 @@
"UserBadges": [".PROFILE_USER_BADGES"],
"Sizes": ["\"SIZE_24\":"]
}},
"UserPopout": {"strings": ["closePopout:", "\"Unexpected missing user\"", "getUser"]},
"UserPopout": {"strings": ["{user:", "userId:", "\"Unexpected missing user\")", "getUser"]},
"UserPopoutSection": {"strings": [".section,", ".lastSection"]},
"UserSummaryItem": {"strings": ["popoutUserId:", ".clickableAvatar"]},
"VideoForwardRef": {"strings": ["HTMLSourceElement", "autoPlay"], "funcStrings": ["externalRef"]}
@ -585,10 +585,10 @@
"UserInfo": {"strings": [".botTag", "isMobile:", ".discordTag"]},
"UserMemberContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user", ".GUILD_CHANNEL_USER_MENU"]},
"UserMemberSince": {"strings": [".memberSinceContainer", ".USER_PROFILE_DISCORD_MEMBER_SINCE"]},
"UserMemberSinceSection": {"strings": [".userId", "headingClassName", "().title", ".guildMember"]},
"UserMemberSinceSection": {"strings": ["userId:", "headingClassName", ".title", "guildMember:"]},
"UserMention": {"strings": [".inlinePreview", "\"@\"", "renderPopout:"]},
"UsernameSection": {"strings": [".shouldCopyOnClick", ".userTagDiscriminatorNoNickname"]},
"UserPopout": {"strings": ["\"userId\"", "\"Unexpected missing user\"", "getUser"]},
"UserPopout": {"strings": ["{user:", "userId:", "\"Unexpected missing user\")", "getUser"]},
"UserPopoutAvatar": {"strings": [".avatarDecorationHint", ".VIEW_PROFILE"], "noSearch": true},
"UserPopoutBody": {"strings": [".customStatusActivity", ".canDM", ".hidePersonalInformation", ".showCopiableUsername"]},
"UserProfile": {"strings": [".PROFILE_MODAL", "USER_INFO_CONNECTIONS", ".topSection"]},

View File

@ -2,7 +2,7 @@
* @name LastMessageDate
* @author DevilBro
* @authorId 278543574059057154
* @version 1.3.6
* @version 1.3.7
* @description Displays the Last Message Date of a Member for the current Server/DM in the UserPopout and UserModal
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -228,6 +228,7 @@ module.exports = (_ => {
}
processUserPopout (e) {
console.log(e);
currentPopout = e.instance;
}
@ -258,9 +259,9 @@ module.exports = (_ => {
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "UserMemberSince"});
if (index > -1) children.splice(index, 0, BDFDB.ReactUtils.createElement(LastMessageDateComponents, {
isInPopout: false,
guildId: currentPopout.props.guildId || BDFDB.DiscordConstants.ME,
channelId: currentPopout.props.channelId,
isGuild: !!currentPopout.props.guildId,
guildId: currentProfile.props.guildId || BDFDB.DiscordConstants.ME,
channelId: currentProfile.props.channelId,
isGuild: !!currentProfile.props.guildId,
user: user
}, true));
}