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 committed Jul 14, 2017
1 parent b19f95c commit 4974ca3
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 4974ca3

Please sign in to comment.