This commit is contained in:
Mirco Wittrien 2021-05-05 18:50:53 +02:00
commit 97cbe2c76d
2 changed files with 6 additions and 42 deletions

View File

@ -2,7 +2,7 @@
* @name RemoveBlockedMessages
* @author DevilBro
* @authorId 278543574059057154
* @version 1.2.5
* @version 1.2.6
* @description Removes blocked Messages/Users
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -17,7 +17,7 @@ module.exports = (_ => {
"info": {
"name": "RemoveBlockedMessages",
"author": "DevilBro",
"version": "1.2.5",
"version": "1.2.6",
"description": "Removes blocked Messages/Users"
},
"changeLog": {
@ -341,7 +341,7 @@ module.exports = (_ => {
}
processChannelMembers (e) {
if (this.settings.places.members) {
if (this.settings.places.memberList) {
e.instance.props.groups = [].concat(e.instance.props.groups);
e.instance.props.rows = [].concat(e.instance.props.rows);
let newRows = [], newGroups = [];
@ -379,7 +379,7 @@ module.exports = (_ => {
}
processMemberListItem (e) {
if (this.settings.places.members && e.instance.props.user && BDFDB.LibraryModules.RelationshipStore.isBlocked(e.instance.props.user.id)) return null;
if (this.settings.places.memberList && e.instance.props.user && BDFDB.LibraryModules.RelationshipStore.isBlocked(e.instance.props.user.id)) return null;
}
processVoiceUsers (e) {
@ -391,7 +391,7 @@ module.exports = (_ => {
}
processPrivateChannel (e) {
if (this.settings.places.members && 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.LibraryModules.RelationshipStore.isBlocked(n.id)), recipients: e.instance.props.channel.recipients.filter(id => !id || !BDFDB.LibraryModules.RelationshipStore.isBlocked(id))}));
if (this.settings.places.memberList && 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.LibraryModules.RelationshipStore.isBlocked(n.id)), recipients: e.instance.props.channel.recipients.filter(id => !id || !BDFDB.LibraryModules.RelationshipStore.isBlocked(id))}));
}
processPrivateChannelCallParticipants (e) {
@ -403,7 +403,7 @@ module.exports = (_ => {
}
processUserSummaryItem (e) {
if (this.settings.places.members && BDFDB.ArrayUtils.is(e.instance.props.users)) e.instance.props.users = [].concat(e.instance.props.users).filter(n => !n || !BDFDB.LibraryModules.RelationshipStore.isBlocked(n.id));
if (this.settings.places.memberList && BDFDB.ArrayUtils.is(e.instance.props.users)) e.instance.props.users = [].concat(e.instance.props.users).filter(n => !n || !BDFDB.LibraryModules.RelationshipStore.isBlocked(n.id));
}
processUserMention (e) {

View File

@ -6033,42 +6033,6 @@ img[src="/assets/cef02719c12d8aaf38894c16dca7fbe6.svg"] { /* rolesettings addr
#app-mount .previewContainer-12UlHl { /* popout preview */
background-color: rgba(var(--transparencycolor), 0.2);
}
/* ---- 14.13. STREAMINFO ---- */
#app-mount .container-2dqNWc { /* modal container */
background-color: transparent;
box-shadow: 0 0 0 1px rgba(var(--transparencycolor), 0.3), 0 2px 10px 0 rgba(var(--transparencycolor), 0.3);
position: relative;
overflow: visible !important;
}
.container-2dqNWc::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
background: var(--popout) var(--popoutposition)/var(--popoutsize);
filter: blur(var(--popoutblur));
background-attachment: fixed;
width: unset;
height: unset;
pointer-events: none;
z-index: -1;
}
.container-2dqNWc::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
background-color: rgba(var(--transparencycolor), calc(var(--transparencyalpha) + 0.2));
width: unset;
height: unset;
pointer-events: none;
z-index: -1;
}
/* ---- 14.13. STREAMINFO ---- */