You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
some cleanup
This commit is contained in:
@ -590,7 +590,6 @@ module.exports = React.createClass({
|
|||||||
let node = null;
|
let node = null;
|
||||||
let nodeBottom;
|
let nodeBottom;
|
||||||
|
|
||||||
// TODO: change this to not use getBoundingClientRect and save the domnode
|
|
||||||
for (let i = messages.length-1; i >= 0; --i) {
|
for (let i = messages.length-1; i >= 0; --i) {
|
||||||
if (!messages[i].dataset.scrollTokens) {
|
if (!messages[i].dataset.scrollTokens) {
|
||||||
continue;
|
continue;
|
||||||
@ -623,7 +622,6 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
_restoreSavedScrollState: function() {
|
_restoreSavedScrollState: function() {
|
||||||
const scrollState = this.scrollState;
|
const scrollState = this.scrollState;
|
||||||
const scrollNode = this._getScrollNode();
|
|
||||||
|
|
||||||
if (scrollState.stuckAtBottom) {
|
if (scrollState.stuckAtBottom) {
|
||||||
this._setScrollTop(Number.MAX_VALUE);
|
this._setScrollTop(Number.MAX_VALUE);
|
||||||
|
Reference in New Issue
Block a user