fix commen

This commit is contained in:
Luke Barnard 2017-05-10 14:55:58 +01:00
parent fe8ea4ffe7
commit 856ef58d46

View file

@ -537,7 +537,7 @@ var TimelinePanel = React.createClass({
} }
let lastReadEvent = this.state.events[lastReadEventIndex]; let lastReadEvent = this.state.events[lastReadEventIndex];
shouldSendReadReceipt = shouldSendReadReceipt && shouldSendReadReceipt = shouldSendReadReceipt &&
// Only send a RR if the last read Event is ahead in the timeline relative to // Only send a RR if the last read event is ahead in the timeline relative to
// the current RR event. // the current RR event.
lastReadEventIndex > currentReadUpToEventIndex && lastReadEventIndex > currentReadUpToEventIndex &&
// Only send a RR if the last RR set != the one we would send // Only send a RR if the last RR set != the one we would send