Merge pull request #775 from matrix-org/luke/fix-RoomList-notif-flashing

Improve zeroing of RoomList notification badges
This commit is contained in:
David Baker
2017-03-28 11:33:38 +01:00
committed by GitHub
2 changed files with 9 additions and 1 deletions
+3 -1
View File
@@ -478,7 +478,9 @@ var TimelinePanel = React.createClass({
if (this.isAtEndOfLiveTimeline()) {
this.props.timelineSet.room.setUnreadNotificationCount('total', 0);
this.props.timelineSet.room.setUnreadNotificationCount('highlight', 0);
// XXX: i'm a bit surprised we don't have to emit an event or dispatch to get this picked up
dis.dispatch({
action: 'on_room_read',
});
}
var currentReadUpToEventId = this._getCurrentReadReceipt(true);