This commit is contained in:
Mirco Wittrien 2019-04-29 09:11:09 +02:00
parent 209a5271db
commit 317d5bac79
2 changed files with 14 additions and 4 deletions

View File

@ -3,7 +3,7 @@
class EditChannels {
getName () {return "EditChannels";}
getVersion () {return "3.9.3";}
getVersion () {return "3.9.4";}
getAuthor () {return "DevilBro";}
@ -11,7 +11,7 @@ class EditChannels {
initConstructor () {
this.changelog = {
"fixed":[["Canary/PTB","Fixed the plugin for canary and ptb"]]
"fixed":[["Channel Header","Fixed the issue where the changed channel header would be stuck when changing channels"]]
};
this.labels = {};
@ -23,6 +23,7 @@ class EditChannels {
"ChannelCategoryItem":"componentDidMount",
"ChannelItem":"componentDidMount",
"HeaderBar":["componentDidMount","componentDidUpdate"],
"HeaderBarContainer":["componentDidMount","componentDidUpdate"],
"Clickable":"componentDidMount",
"StandardSidebarView":"componentWillUnmount"
};
@ -354,6 +355,10 @@ class EditChannels {
this.changeChannel(instance.props.channel, wrapper.querySelector(BDFDB.dotCN.channelname));
}
}
processHeaderBarContainer (instance, wrapper) {
this.processHeaderBar(instance, wrapper);
}
processHeaderBar (instance, wrapper) {
let channel_id = BDFDB.getReactValue(instance, "props.channelId") || BDFDB.getReactValue(instance, "_reactInternalFiber.return.memoizedProps.channelId");

View File

@ -3,7 +3,7 @@
class EditUsers {
getName () {return "EditUsers";}
getVersion () {return "3.3.5";}
getVersion () {return "3.3.6";}
getAuthor () {return "DevilBro";}
@ -11,7 +11,7 @@ class EditUsers {
initConstructor () {
this.changelog = {
"fixed":[["Start up","Fixed a Bug where some servers wouldn't get hidden on start up"]]
"fixed":[["DM Header","Fixed the issue where the changed DM header would be stuck when changing channels"]]
};
this.labels = {};
@ -32,6 +32,7 @@ class EditUsers {
"PictureInPictureVideo":"componentDidMount",
"PrivateChannel":["componentDidMount","componentDidUpdate"],
"HeaderBar":["componentDidMount","componentDidUpdate"],
"HeaderBarContainer":["componentDidMount","componentDidUpdate"],
"Clickable":"componentDidMount",
"MessageContent":["componentDidMount","componentDidUpdate"],
"StandardSidebarView":"componentWillUnmount"
@ -630,6 +631,10 @@ class EditUsers {
}
}
processHeaderBarContainer (instance, wrapper) {
this.processHeaderBar(instance, wrapper);
}
processHeaderBar (instance, wrapper) {
let channel_id = BDFDB.getReactValue(instance, "_reactInternalFiber.return.memoizedProps.channelId");
if (channel_id) {