LastMessageDate Fix
This commit is contained in:
parent
5710932346
commit
93a737b7b1
|
@ -488,11 +488,10 @@
|
||||||
"UserGenericContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user", ".USER_GENERIC_MENU"], "noSearch": true},
|
"UserGenericContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user", ".USER_GENERIC_MENU"], "noSearch": true},
|
||||||
"UserInfo": {"strings": [".botTag", "isMobile:", ".discordTag"]},
|
"UserInfo": {"strings": [".botTag", "isMobile:", ".discordTag"]},
|
||||||
"UserMemberContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user", ".GUILD_CHANNEL_USER_MENU"], "noSearch": true},
|
"UserMemberContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user", ".GUILD_CHANNEL_USER_MENU"], "noSearch": true},
|
||||||
"UserMemberSince": {"strings": [".memberSinceContainer", ".USER_PROFILE_DISCORD_MEMBER_SINCE"]},
|
"UserMemberSince": {"strings": [".memberSince", ".USER_PROFILE_DISCORD_MEMBER_SINCE"]},
|
||||||
"UserMemberSinceSection": {"strings": ["userId:", "headingClassName", ".title", "guildMember:"]},
|
|
||||||
"UserMention": {"strings": ["inlinePreview", "\"@\"", "renderPopout:"]},
|
"UserMention": {"strings": ["inlinePreview", "\"@\"", "renderPopout:"]},
|
||||||
"UsernameSection": {"strings": ["shouldCopyOnClick:", ".userTagDiscriminatorNoNickname"]},
|
"UsernameSection": {"strings": ["shouldCopyOnClick:", ".userTagDiscriminatorNoNickname"]},
|
||||||
"UserPopout": {"strings": ["{user:", "userId:", "\"Unexpected missing user\")", "getUser"]},
|
"UserPopout": {"strings": ["{user:", "userId:", "\"Unexpected missing user\")", "getUser"], "noSearch": true},
|
||||||
"UserPopoutAvatar": {"strings": [".avatarDecorationHint", ".VIEW_PROFILE"], "noSearch": true},
|
"UserPopoutAvatar": {"strings": [".avatarDecorationHint", ".VIEW_PROFILE"], "noSearch": true},
|
||||||
"UserPopoutBody": {"strings": ["customStatusActivity:", "canDM:", "hidePersonalInformation:", "showCopiableUsername:"]},
|
"UserPopoutBody": {"strings": ["customStatusActivity:", "canDM:", "hidePersonalInformation:", "showCopiableUsername:"]},
|
||||||
"UserProfile": {"strings": [".PROFILE_MODAL", "USER_INFO_CONNECTIONS", ".topSection"], "noSearch": true},
|
"UserProfile": {"strings": [".PROFILE_MODAL", "USER_INFO_CONNECTIONS", ".topSection"], "noSearch": true},
|
||||||
|
@ -504,7 +503,8 @@
|
||||||
"UserRolesSection": {"strings": [".rolePillBorder", "numRoles", "roleClassName"]},
|
"UserRolesSection": {"strings": [".rolePillBorder", "numRoles", "roleClassName"]},
|
||||||
"UserSummaryItem": {"protos": ["renderMoreUsers", "renderUsers", "renderIcon"]},
|
"UserSummaryItem": {"protos": ["renderMoreUsers", "renderUsers", "renderIcon"]},
|
||||||
"UserSettingsAppearance": {"protos": ["renderTheme", "renderDisplayMode", "renderMessageGroupSpacingSlider"]},
|
"UserSettingsAppearance": {"protos": ["renderTheme", "renderDisplayMode", "renderMessageGroupSpacingSlider"]},
|
||||||
"UserTheme": {"strings": [".profileColors", "useDefaultClientTheme:"], "noSearch": true},
|
"UserTheme": {"strings": [".UserProfileThemeContextProvider", "pendingThemeColors:"], "noSearch": true},
|
||||||
|
"UserThemeContainer": {"strings": [".trackUserProfileAction", "guildId:", ".Provider"], "noSearch": true},
|
||||||
"VideoBackground": {"strings": ["backgroundSrc:", "pulseSpeakingIndicator:", ".avatarWrapper"]},
|
"VideoBackground": {"strings": ["backgroundSrc:", "pulseSpeakingIndicator:", ".avatarWrapper"]},
|
||||||
"VoiceUser": {"protos": ["renderPrioritySpeaker", "renderIcons", "renderAvatar"]},
|
"VoiceUser": {"protos": ["renderPrioritySpeaker", "renderIcons", "renderAvatar"]},
|
||||||
"VoiceUsers": {"strings": ["hidePreview", "previewIsOpen", "Permissions.MOVE_MEMBERS"]}
|
"VoiceUsers": {"strings": ["hidePreview", "previewIsOpen", "Permissions.MOVE_MEMBERS"]}
|
||||||
|
@ -1438,7 +1438,7 @@
|
||||||
"MenuReactButton": {"props": ["wrapper", "icon", "focused", "button"]},
|
"MenuReactButton": {"props": ["wrapper", "icon", "focused", "button"]},
|
||||||
"MenuSlider": {"props": ["slider", "sliderContainer"]},
|
"MenuSlider": {"props": ["slider", "sliderContainer"]},
|
||||||
"Member": {"props": ["member", "ownerIcon"]},
|
"Member": {"props": ["member", "ownerIcon"]},
|
||||||
"MemberSince": {"props": ["memberSinceContainer", "discordIcon"]},
|
"MemberSince": {"props": ["memberSince", "discordIcon"]},
|
||||||
"MembersWrapper": {"props": ["membersWrap", "membersGroup"]},
|
"MembersWrapper": {"props": ["membersWrap", "membersGroup"]},
|
||||||
"Message": {"props": ["message", "mentioned"]},
|
"Message": {"props": ["message", "mentioned"]},
|
||||||
"MessageAccessory": {"props": ["embedWrapper", "gifFavoriteButton"]},
|
"MessageAccessory": {"props": ["embedWrapper", "gifFavoriteButton"]},
|
||||||
|
@ -2607,7 +2607,7 @@
|
||||||
"memberownericon": ["Member", "ownerIcon"],
|
"memberownericon": ["Member", "ownerIcon"],
|
||||||
"memberpremiumicon": ["Member", "premiumIcon"],
|
"memberpremiumicon": ["Member", "premiumIcon"],
|
||||||
"members": ["MembersWrapper", "members"],
|
"members": ["MembersWrapper", "members"],
|
||||||
"membersince": ["MemberSince", "memberSinceContainer"],
|
"membersince": ["MemberSince", "memberSince"],
|
||||||
"membersgroup": ["MembersWrapper", "membersGroup"],
|
"membersgroup": ["MembersWrapper", "membersGroup"],
|
||||||
"memberswrap": ["MembersWrapper", "membersWrap"],
|
"memberswrap": ["MembersWrapper", "membersWrap"],
|
||||||
"memberusername": ["Member", "username"],
|
"memberusername": ["Member", "username"],
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @name LastMessageDate
|
* @name LastMessageDate
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 1.3.8
|
* @version 1.3.9
|
||||||
* @description Displays the Last Message Date of a Member for the current Server/DM in the UserPopout and UserModal
|
* @description Displays the Last Message Date of a Member for the current Server/DM in the UserPopout and UserModal
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -102,7 +102,8 @@ module.exports = (_ => {
|
||||||
nativeClass: false,
|
nativeClass: false,
|
||||||
name: BDFDB.LibraryComponents.SvgIcon.Names.NUMPAD
|
name: BDFDB.LibraryComponents.SvgIcon.Names.NUMPAD
|
||||||
});
|
});
|
||||||
return BDFDB.ReactUtils.createElement(this.props.isInPopout ? BDFDB.LibraryComponents.UserPopoutSection : BDFDB.ReactUtils.Fragment, {
|
return BDFDB.ReactUtils.createElement(this.props.isInPopout ? "div" : BDFDB.ReactUtils.Fragment, {
|
||||||
|
className: this.props.isInPopout && BDFDB.disCN.marginbottom8,
|
||||||
children: [
|
children: [
|
||||||
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Heading, {
|
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Heading, {
|
||||||
className: !this.props.isInPopout ? BDFDB.disCN.userprofileinfosectionheader : BDFDB.disCN.userpopoutsectiontitle,
|
className: !this.props.isInPopout ? BDFDB.disCN.userprofileinfosectionheader : BDFDB.disCN.userpopoutsectiontitle,
|
||||||
|
@ -148,11 +149,10 @@ module.exports = (_ => {
|
||||||
|
|
||||||
this.modulePatches = {
|
this.modulePatches = {
|
||||||
before: [
|
before: [
|
||||||
"UserPopout",
|
"UserThemeContainer"
|
||||||
"UserProfile"
|
|
||||||
],
|
],
|
||||||
after: [
|
after: [
|
||||||
"UserMemberSinceSection",
|
"UserMemberSince",
|
||||||
"UserProfileBody"
|
"UserProfileBody"
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
@ -232,11 +232,12 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
processUserPopout (e) {
|
processUserThemeContainer (e) {
|
||||||
currentPopout = e.instance;
|
if (e.instance.props.layout == "POPOUT") currentPopout = e.instance;
|
||||||
|
if (e.instance.props.layout == "MODAL") currentProfile = e.instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
processUserMemberSinceSection (e) {
|
processUserMemberSince (e) {
|
||||||
if (!currentPopout) return;
|
if (!currentPopout) return;
|
||||||
let user = e.instance.props.user || BDFDB.LibraryStores.UserStore.getUser(e.instance.props.userId);
|
let user = e.instance.props.user || BDFDB.LibraryStores.UserStore.getUser(e.instance.props.userId);
|
||||||
if (!user || user.isNonUserBot()) return;
|
if (!user || user.isNonUserBot()) return;
|
||||||
|
@ -252,10 +253,6 @@ module.exports = (_ => {
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
processUserProfile (e) {
|
|
||||||
currentProfile = e.instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
processUserProfileBody (e) {
|
processUserProfileBody (e) {
|
||||||
if (!currentProfile) return;
|
if (!currentProfile) return;
|
||||||
let user = e.instance.props.user || BDFDB.LibraryStores.UserStore.getUser(e.instance.props.userId);
|
let user = e.instance.props.user || BDFDB.LibraryStores.UserStore.getUser(e.instance.props.userId);
|
||||||
|
|
Loading…
Reference in New Issue