You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-16 22:01:54 +03:00
fix for loop - check happens before pre-inc so cause issues at end of TL
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@ -1023,7 +1023,7 @@ var TimelinePanel = React.createClass({
|
||||
let latestReadEventIndex = i;
|
||||
// Place the RM at a hidden event below the latest seen event (if exists)
|
||||
// to prevent RM going up the timeline between clients which do not hide the same events.
|
||||
for (let j = i; j < this.state.events.length; ++j) {
|
||||
for (let j = i + 1; j < this.state.events.length; j++) {
|
||||
if (messagePanel._shouldShowEvent(this.state.events[j])) break;
|
||||
latestReadEventIndex = j;
|
||||
}
|
||||
|
Reference in New Issue
Block a user