stuff
This commit is contained in:
parent
2b8ac4f312
commit
b07e2fb306
|
@ -1268,6 +1268,9 @@ input[REPLACE_CLASS_input][REPLACE_CLASS_inputerror] {
|
||||||
padding-top: 4px;
|
padding-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[REPLACE_CLASS_tooltiprow]:has([REPLACE_CLASS_usersummarycontainer]:empty) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
[REPLACE_CLASS_tooltipnote] {
|
[REPLACE_CLASS_tooltipnote] {
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @name RemoveBlockedUsers
|
* @name RemoveBlockedUsers
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 1.6.3
|
* @version 1.6.4
|
||||||
* @description Removes blocked Messages/Users
|
* @description Removes blocked Messages/Users
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -14,9 +14,7 @@
|
||||||
|
|
||||||
module.exports = (_ => {
|
module.exports = (_ => {
|
||||||
const changeLog = {
|
const changeLog = {
|
||||||
"fixed": {
|
|
||||||
"Blocked in VC": "No longer plays audio/notifications of blocked users in voice chats"
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
|
@ -96,6 +94,7 @@ module.exports = (_ => {
|
||||||
"Messages",
|
"Messages",
|
||||||
"NowPlayingItem",
|
"NowPlayingItem",
|
||||||
"Reactors",
|
"Reactors",
|
||||||
|
"RTCConnectionVoiceUsers",
|
||||||
"SearchResults",
|
"SearchResults",
|
||||||
"UserSummaryItem",
|
"UserSummaryItem",
|
||||||
"VoiceUsers"
|
"VoiceUsers"
|
||||||
|
@ -456,6 +455,11 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
processRTCConnectionVoiceUsers (e) {
|
||||||
|
if (!this.settings.places.voiceChat || !e.instance.props.voiceStates) return;
|
||||||
|
e.instance.props.voiceStates = [].concat(e.instance.props.voiceStates).filter(n => !n.user || !BDFDB.LibraryStores.RelationshipStore.isBlocked(n.user.id));
|
||||||
|
}
|
||||||
|
|
||||||
processDirectMessage (e) {
|
processDirectMessage (e) {
|
||||||
if (!this.settings.places.recentDms || !e.instance.props.channel) return;
|
if (!this.settings.places.recentDms || !e.instance.props.channel) return;
|
||||||
if (e.instance.props.channel.isGroupDM()) {
|
if (e.instance.props.channel.isGroupDM()) {
|
||||||
|
|
Loading…
Reference in New Issue