diff --git a/Plugins/EditChannels/EditChannels.plugin.js b/Plugins/EditChannels/EditChannels.plugin.js index bef4ffc2e9..e8ed165f96 100644 --- a/Plugins/EditChannels/EditChannels.plugin.js +++ b/Plugins/EditChannels/EditChannels.plugin.js @@ -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"); diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index f335b376e9..70683b1deb 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -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) {