stuff
This commit is contained in:
parent
7ef5baeb4f
commit
093be3d3cc
|
@ -199,7 +199,6 @@
|
|||
"MemberCard": {"class": "guildsettingsmembercard"},
|
||||
"MessageHeader": {"props": ["MessageTimestamp"]},
|
||||
"Messages": {"strings": ["group-spacing-", "canManageMessages"]},
|
||||
"MessagesPopout": {"class": "messagespopout"},
|
||||
"MessageUsername": {"strings": ["default.username", "colorString", "compact"]},
|
||||
"ModalLayer": {"class": "layermodal"},
|
||||
"MutualGuilds": {"class": "userprofilebody"},
|
||||
|
|
|
@ -14,12 +14,12 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "ReadAllNotificationsButton",
|
||||
"author": "DevilBro",
|
||||
"version": "1.6.2",
|
||||
"version": "1.6.3",
|
||||
"description": "Add a button to clear all notifications"
|
||||
},
|
||||
"changeLog": {
|
||||
"fixed": {
|
||||
"Works again": "Can discord stop messing with the server list, jeez"
|
||||
"Clear Mentions": "Works again"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -70,7 +70,7 @@ module.exports = (_ => {
|
|||
this.patchedModules = {
|
||||
after: {
|
||||
Guilds: "render",
|
||||
MessagesPopout: "render",
|
||||
RecentMentions: "default",
|
||||
RecentsHeader: "default"
|
||||
}
|
||||
};
|
||||
|
@ -304,10 +304,8 @@ module.exports = (_ => {
|
|||
}));
|
||||
}
|
||||
|
||||
processMessagesPopout (e) {
|
||||
if (e.instance.props.className == BDFDB.disCN.recentmentionspopout && e.returnvalue.props.children && e.returnvalue.props.children[0]) {
|
||||
e.returnvalue.props.children[0].props.messages = e.instance.props.messages;
|
||||
}
|
||||
processRecentMentions (e) {
|
||||
if (e.instance.props.header && e.instance.props.header.props) e.instance.props.header.props.messages = e.returnvalue.props.messages;
|
||||
}
|
||||
|
||||
processRecentsHeader (e) {
|
||||
|
|
|
@ -70,7 +70,6 @@ module.exports = (_ => {
|
|||
|
||||
this.patchedModules = {
|
||||
before: {
|
||||
MessagesPopout: "render",
|
||||
ReactorsComponent: "render",
|
||||
ChannelMembers: "render",
|
||||
PrivateChannelRecipients: "default",
|
||||
|
@ -81,6 +80,8 @@ module.exports = (_ => {
|
|||
UserSummaryItem: "render"
|
||||
},
|
||||
after: {
|
||||
ChannelPins: "default",
|
||||
RecentMentions: "default",
|
||||
Messages: "type",
|
||||
MemberListItem: "render",
|
||||
VoiceUser: "render",
|
||||
|
@ -211,8 +212,11 @@ module.exports = (_ => {
|
|||
}
|
||||
}
|
||||
|
||||
processMessagesPopout (e) {
|
||||
if (settings.removeMessages && BDFDB.ArrayUtils.is(e.instance.props.messages)) e.instance.props.messages = e.instance.props.messages.filter(n => !n || !n.author || !n.author.id || !BDFDB.LibraryModules.FriendUtils.isBlocked(n.author.id));
|
||||
processChannelPins (e) {
|
||||
if (settings.removeMessages && e.returnvalue.props && e.returnvalue.props.children && e.returnvalue.props.children.props && BDFDB.ArrayUtils.is(e.returnvalue.props.children.props.messages)) e.returnvalue.props.children.props.messages = e.returnvalue.props.children.props.messages.filter(n => !n || !n.author || !n.author.id || !BDFDB.LibraryModules.FriendUtils.isBlocked(n.author.id));
|
||||
}
|
||||
processRecentMentions (e) {
|
||||
if (settings.removeMessages && BDFDB.ArrayUtils.is(e.returnvalue.props.messages)) e.returnvalue.props.messages = e.returnvalue.props.messages.filter(n => !n || !n.author || !n.author.id || !BDFDB.LibraryModules.FriendUtils.isBlocked(n.author.id));
|
||||
}
|
||||
|
||||
processReactorsComponent (e) {
|
||||
|
|
Loading…
Reference in New Issue