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
|
@ -97,9 +97,9 @@ module.exports = React.createClass({
|
|||
}
|
||||
break;
|
||||
case 'on_room_read':
|
||||
payload.room.setUnreadNotificationCount('total', 0);
|
||||
payload.room.setUnreadNotificationCount('highlight', 0);
|
||||
// Force an update because this state is too deep to cause an update
|
||||
// Force an update because the notif count state is too deep to cause
|
||||
// an update. This forces the local echo of reading notifs to be
|
||||
// reflected by the RoomTiles.
|
||||
this.forceUpdate();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue