Update PinDMs.plugin.js
This commit is contained in:
parent
c9030ad475
commit
553b061c35
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue