Update ServerFolders.plugin.js

This commit is contained in:
Mirco Wittrien 2019-06-24 17:42:31 +02:00
parent 7bb7c31338
commit 61975f38db
1 changed files with 11 additions and 2 deletions

View File

@ -3,7 +3,7 @@
class ServerFolders { class ServerFolders {
getName () {return "ServerFolders";} getName () {return "ServerFolders";}
getVersion () {return "6.3.1";} getVersion () {return "6.3.2";}
getAuthor () {return "DevilBro";} getAuthor () {return "DevilBro";}
@ -11,7 +11,7 @@ class ServerFolders {
initConstructor () { initConstructor () {
this.changelog = { this.changelog = {
"fixed":[["Settings","Fixed collision between ForceCloseAllFolders and ForceOpenFolderOfSelectedServer Settings"]], "fixed":[["Server Outage","Fixed issue where servers that return from an outage would not be hidden by the plugin"]],
}; };
this.labels = {}; this.labels = {};
@ -637,6 +637,15 @@ class ServerFolders {
this.updateFolderNotifications(folderdiv); this.updateFolderNotifications(folderdiv);
},1000); },1000);
} }
else if (!wrapper.getAttribute("folder")) {
this.cachedGuildState[instance.props.guild.id] = this.getGuildState(instance);
let folderdiv = this.getFolderOfServer(instance.props.guild);
if (folderdiv) {
this.hideServer(wrapper, folderdiv);
this.updateCopyInFolderContent(wrapper, folderdiv);
this.updateFolderNotifications(folderdiv);
}
}
} }
if (methodnames.includes("componentWillUnmount")) { if (methodnames.includes("componentWillUnmount")) {
let folderdiv = this.getFolderOfServer(instance.props.guild); let folderdiv = this.getFolderOfServer(instance.props.guild);