stuff
This commit is contained in:
parent
b7f05b6ed2
commit
767ff072e3
|
@ -433,7 +433,7 @@
|
|||
"QuickSwitchGuildResult": {"strings": ["getAccessibilityLabel", ".contentUnread", "guildIconContainer"]},
|
||||
"QuickSwitchUserResult": {"strings": ["getAccessibilityLabel", ".contentUnread", "getDisplayNickname"]},
|
||||
"Reactions": {"strings": ["showImmediate:", ".BURST", "reactions:", ".emoji.name"], "noSearch": true},
|
||||
"ReactionsModalEmojis": {"strings": [".BURST", ".reactions", ".emoji.name", "selectedReaction"], "noSearch": true},
|
||||
"ReactionsModal": {"strings": [".BURST", ".reactions", ".emoji.name", "selectedReaction"], "noSearch": true},
|
||||
"ReactionsModalUser": {"strings": ["currentUser cannot be undefined", "reactorDefault"]},
|
||||
"ReactionsModalUsers": {"strings": ["hasMore", "emoji", "spinnerMore"], "noSearch": true},
|
||||
"RecentMentions": {"strings": ["canCloseAllMessages", "RECENT_MENTIONS", "badgeState:"]},
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @name RemoveBlockedUsers
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.6.6
|
||||
* @version 1.6.7
|
||||
* @description Removes blocked Messages/Users
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -93,24 +93,23 @@ module.exports = (_ => {
|
|||
"Message",
|
||||
"Messages",
|
||||
"NowPlayingItem",
|
||||
"Reactors",
|
||||
"ReactionsModalUsers",
|
||||
"RTCConnectionVoiceUsers",
|
||||
"SearchResults",
|
||||
"UserSummaryItem",
|
||||
"VoiceUsers"
|
||||
],
|
||||
after: [
|
||||
"ThreadCard",
|
||||
"BlockedMessageGroup",
|
||||
"ChannelPins",
|
||||
"DirectMessage",
|
||||
"MemberListItem",
|
||||
"PrivateChannel",
|
||||
"Reactions",
|
||||
"ReactorsList",
|
||||
"ReactionsModal",
|
||||
"RecentMentions",
|
||||
"RichUserMention",
|
||||
"SearchResultsInner",
|
||||
"ThreadCard",
|
||||
"UserMention",
|
||||
"VoiceUser",
|
||||
"VoiceUsers"
|
||||
|
@ -330,7 +329,7 @@ module.exports = (_ => {
|
|||
if (!e.returnvalue.props.children[emojiArrayIndex].filter(n => n).length) return null;
|
||||
}
|
||||
|
||||
processReactorsList (e) {
|
||||
processReactionsModal (e) {
|
||||
if (!this.settings.places.reactions) return;
|
||||
let [reactionEntries, index] = BDFDB.ReactUtils.findParent(e.returnvalue.props.children, {filter: n => n && n.props && n.props.emoji});
|
||||
if (index == -1) return;
|
||||
|
@ -347,7 +346,7 @@ module.exports = (_ => {
|
|||
}
|
||||
}
|
||||
|
||||
processReactors (e) {
|
||||
processReactionsModalUsers (e) {
|
||||
if (this.settings.places.reactions && BDFDB.ArrayUtils.is(e.instance.props.reactors)) e.instance.props.reactors = e.instance.props.reactors.filter(n => !n || !BDFDB.LibraryStores.RelationshipStore.isBlocked(n.id));
|
||||
}
|
||||
|
||||
|
@ -404,10 +403,6 @@ module.exports = (_ => {
|
|||
}
|
||||
}
|
||||
|
||||
processMemberListItem (e) {
|
||||
if (this.settings.places.memberList && e.instance.props.user && BDFDB.LibraryStores.RelationshipStore.isBlocked(e.instance.props.user.id)) return null;
|
||||
}
|
||||
|
||||
processPrivateChannelRecipients (e) {
|
||||
if (this.settings.places.voiceChat && e.instance.props.channel && e.instance.props.channel.isGroupDM()) e.instance.props.channel = new BDFDB.DiscordObjects.Channel(Object.assign({}, e.instance.props.channel, {rawRecipients: e.instance.props.channel.rawRecipients.filter(n => !n || !BDFDB.LibraryStores.RelationshipStore.isBlocked(n.id)), recipients: e.instance.props.channel.recipients.filter(id => !id || !BDFDB.LibraryStores.RelationshipStore.isBlocked(id))}));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue