Update ShowConnections.plugin.js

This commit is contained in:
Mirco Wittrien 2021-05-31 23:58:10 +02:00 committed by GitHub
parent 369cd6c844
commit 8d36df743f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ module.exports = (_ => {
if (e.node) currentPopup = {id: e.instance.props.user.id, instance: e.instance};
else {
if (loadedUsers[e.instance.props.user.id]) {
let connections = loadedUsers[e.instance.props.user.id].filter(c => BDFDB.LibraryModules.ConnectionProviderUtils.isSupported(c.type));
let connections = loadedUsers[e.instance.props.user.id].filter(c => BDFDB.LibraryModules.ConnectionProviderUtils.isSupported(c.type) && this.settings.connections[c.type]);
if (connections.length) {
let isLightTheme = BDFDB.DiscordUtils.getTheme() == BDFDB.disCN.themelight;
let bodyInner = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.userpopoutbodyinnerwrapper]]});
@ -235,4 +235,4 @@ module.exports = (_ => {
}
};
})(window.BDFDB_Global.PluginUtils.buildPlugin(config));
})();
})();