Skip to content

Commit

Permalink
Merge pull request #9120 from RocketChat/hotfix/9043
Browse files Browse the repository at this point in the history
Fix: Multiple unread indicators
  • Loading branch information
rodrigok authored Dec 14, 2017
2 parents 33e2719 + f32b24b commit 2cb42e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/rocketchat-ui/client/lib/readMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ const readMessage = new class {

if (firstUnreadRecord != null) {
room.unreadFirstId = firstUnreadRecord._id;
$(room.dom).find(`.message.first-unread:not(#${ firstUnreadRecord._id })`).removeClass('first-unread');
$(room.dom).find(`.message#${ firstUnreadRecord._id }`).addClass('first-unread');
}
}
Expand Down

0 comments on commit 2cb42e6

Please sign in to comment.