diff --git a/Plugins/PinDMs/PinDMs.plugin.js b/Plugins/PinDMs/PinDMs.plugin.js index d4660ed84c..17fe404c31 100644 --- a/Plugins/PinDMs/PinDMs.plugin.js +++ b/Plugins/PinDMs/PinDMs.plugin.js @@ -9,7 +9,7 @@ var PinDMs = (_ => { return class PinDMs { getName () {return "PinDMs";} - getVersion () {return "1.7.4";} + getVersion () {return "1.7.5";} getAuthor () {return "DevilBro";} @@ -17,7 +17,7 @@ var PinDMs = (_ => { constructor () { this.changelog = { - "fixed":[["Sort by recent","Works again"]] + "fixed":[["All pinned","No longer acts weird if all DMs are pinned in a category"]] }; this.patchedModules = { @@ -357,6 +357,12 @@ var PinDMs = (_ => { return rowHeightFunc(...args); }; + let renderRow = e.returnvalue.props.renderRow; + e.returnvalue.props.renderRow = (...args) => { + let row = renderRow(...args); + return row && row.key == "no-private-channels" ? null : row; + }; + let renderSection = e.returnvalue.props.renderSection; e.returnvalue.props.renderSection = (...args) => { if (args[0].section != 0 && args[0].section != e.returnvalue.props.sections.length - 1) {