Skip to content

Commit

Permalink
Merge pull request #7403 from RocketChat/fix-unread-bar
Browse files Browse the repository at this point in the history
[FIX] Fix Unread Bar Disappearing
  • Loading branch information
rodrigok authored Jul 14, 2017
2 parents a44ae3f + fd55fc2 commit 46fba81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/rocketchat-ui/client/lib/readMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ const readMessage = new class {
if (this.debug) { console.log('readMessage -> readNow canceled, unread mark visible:', visible, 'unread since exists', (room.unreadSince.get() != null)); }
return;
}
// if unread mark is not visible and there is more more not loaded unread messages
} else if (RoomHistoryManager.getRoom(rid).unreadNotLoaded.get() > 0) {
return;
}

if (this.debug) { console.log('readMessage -> readNow rid:', rid); }
Expand Down

0 comments on commit 46fba81

Please sign in to comment.