Fixed bug where PinDMs doesnt add pinned DMs when the scroller isnt big enough to scroll down

This commit is contained in:
Mirco Wittrien 2019-01-22 14:24:47 +01:00
parent b71b4f6c5b
commit ae81b119fb
1 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,7 @@
class PinDMs {
getName () {return "PinDMs";}
getVersion () {return "1.2.7";}
getVersion () {return "1.2.8";}
getAuthor () {return "DevilBro";}
@ -259,8 +259,11 @@ class PinDMs {
}
forceUpdateScroller (scroller) {
scroller.scrollTop += 10;
scroller.scrollTop -= 10;
if (this.updatingScroller) return;
this.updatingScroller = true;
var stateNode = BDFDB.getReactValue(scroller, "return.return.return.stateNode");
if (stateNode) stateNode.updater.enqueueForceUpdate(stateNode);
setTimeout(() => {delete this.updatingScroller;},1000);
}
setLabelsByLanguage () {