Do not send the room with action
By not sending the room with the action, we prevent its state from being updated by registered views listening for on_room_read
This commit is contained in:
parent
f4dc7ae8b1
commit
4a0988f83e
2 changed files with 5 additions and 4 deletions
|
@ -476,9 +476,10 @@ var TimelinePanel = React.createClass({
|
|||
// if we are scrolled to the bottom, do a quick-reset of our unreadNotificationCount
|
||||
// to avoid having to wait from the remote echo from the homeserver.
|
||||
if (this.isAtEndOfLiveTimeline()) {
|
||||
this.props.timelineSet.room.setUnreadNotificationCount('total', 0);
|
||||
this.props.timelineSet.room.setUnreadNotificationCount('highlight', 0);
|
||||
dis.dispatch({
|
||||
action: 'on_room_read',
|
||||
room: this.props.timelineSet.room,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue