From 4228944d310bb25e682691dfcc642237202896f7 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sat, 16 Feb 2019 10:41:56 +0100 Subject: [PATCH] Update PinDMs.plugin.js --- Plugins/PinDMs/PinDMs.plugin.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Plugins/PinDMs/PinDMs.plugin.js b/Plugins/PinDMs/PinDMs.plugin.js index 0112734f1e..657a433775 100644 --- a/Plugins/PinDMs/PinDMs.plugin.js +++ b/Plugins/PinDMs/PinDMs.plugin.js @@ -3,7 +3,7 @@ class PinDMs { getName () {return "PinDMs";} - getVersion () {return "1.3.2";} + getVersion () {return "1.3.3";} getAuthor () {return "DevilBro";} @@ -11,7 +11,7 @@ class PinDMs { initConstructor () { this.changelog = { - "improved":[["Selected Channel","Pinned channels are no longer also marked as selected in the normal channel list"]] + "fixed":[["Rendering","Pinned DMs sometimes didn't render when switching DMs, this should be fixed now"]] }; this.patchModules = { @@ -492,7 +492,10 @@ class PinDMs { if (this.updatingScroller) return; this.updatingScroller = true; var stateNode = BDFDB.getReactValue(scroller, "return.return.return.stateNode"); - if (stateNode) stateNode.updater.enqueueForceUpdate(stateNode); + if (stateNode) { + stateNode.updater.enqueueForceUpdate(stateNode); + setTimeout(() => {stateNode.updater.enqueueForceUpdate(stateNode);},500); + } setTimeout(() => {delete this.updatingScroller;},1000); }