Update EditChannels.plugin.js
This commit is contained in:
parent
3edb9c934c
commit
8f803b7192
|
@ -116,7 +116,6 @@ module.exports = (_ => {
|
|||
"DirectMessage",
|
||||
"FocusRingScope",
|
||||
"HeaderBarContainer",
|
||||
"Mention",
|
||||
"PrivateChannel",
|
||||
"QuickSwitchChannelResult",
|
||||
"RecentsChannelHeader",
|
||||
|
@ -455,13 +454,8 @@ module.exports = (_ => {
|
|||
processFocusRingScope (e) {
|
||||
if (!e.returnvalue || !e.returnvalue.props.className) return;
|
||||
let change, hoveredEvents, channelId, nameClass, categoyClass, iconClass, modify = {};
|
||||
if (this.settings.places.channelList && e.returnvalue.props.className.indexOf(BDFDB.disCN.categoryiconvisibility) > -1) {
|
||||
change = true;
|
||||
hoveredEvents = true;
|
||||
channelId = (BDFDB.ReactUtils.findValue(e.returnvalue, "data-list-item-id") || "").split("___").pop();
|
||||
nameClass = BDFDB.disCN.categoryname;
|
||||
iconClass = BDFDB.disCN.categoryicon;
|
||||
modify = {muted: BDFDB.LibraryStores.UserGuildSettingsStore.isGuildOrCategoryOrChannelMuted(BDFDB.LibraryStores.SelectedGuildStore.getGuildId(), channelId)};
|
||||
if (this.settings.places.mentions && e.returnvalue.props.className.indexOf(BDFDB.disCN.mention) > -1 && e.instance.props["edited-mention-color"]) {
|
||||
e.returnvalue.props.style = Object.assign({}, e.returnvalue.props.style, {"--edited-mention-color": e.instance.props["edited-mention-color"]});
|
||||
}
|
||||
if (this.settings.places.channelList && e.returnvalue.props.className.indexOf(BDFDB.disCN.channeliconvisibility) > -1) {
|
||||
change = true;
|
||||
|
@ -739,10 +733,6 @@ module.exports = (_ => {
|
|||
}
|
||||
}
|
||||
|
||||
processMention (e) {
|
||||
if (e.instance.props["edited-mention-color"]) e.returnvalue.props.style = Object.assign({}, e.returnvalue.props.style, {"--edited-mention-color": e.instance.props["edited-mention-color"]});
|
||||
}
|
||||
|
||||
changeChannelColor (child, channelId, modify) {
|
||||
if (!BDFDB.ReactUtils.isValidElement(child)) return;
|
||||
let color = this.getChannelDataColor(channelId);
|
||||
|
|
Loading…
Reference in New Issue