You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
Reduce number of unpaginated events by 1
When unpaginating in the backwards direction
This commit is contained in:
@@ -263,7 +263,7 @@ var TimelinePanel = React.createClass({
|
||||
}
|
||||
);
|
||||
|
||||
let count = backwards ? marker + 1 : this.state.events.length - marker;
|
||||
let count = backwards ? marker : this.state.events.length - marker;
|
||||
|
||||
if (count > 0) {
|
||||
debuglog("TimelinePanel: Unpaginating", count, "in direction", dir);
|
||||
|
||||
Reference in New Issue
Block a user