change wording of comment as per Luke's review

pull/21833/head
Michael Telatynski 2017-07-26 11:46:59 +01:00
parent 8e66e64621
commit f42ae1662b
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E
1 changed files with 1 additions and 1 deletions

View File

@ -1021,7 +1021,7 @@ var TimelinePanel = React.createClass({
if ((allowPartial && boundingRect.top < wrapperRect.bottom) || if ((allowPartial && boundingRect.top < wrapperRect.bottom) ||
(!allowPartial && boundingRect.bottom < wrapperRect.bottom)) { (!allowPartial && boundingRect.bottom < wrapperRect.bottom)) {
let latestReadEventIndex = i; let latestReadEventIndex = i;
// Place the RM at a hidden event below the latest seen event (if exists) // Place the RM at a hidden event below the latest visible event.
// to prevent RM going up the timeline between clients which do not hide the same events. // to prevent RM going up the timeline between clients which do not hide the same events.
for (let j = i + 1; 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; if (messagePanel._shouldShowEvent(this.state.events[j])) break;