From 4974ca39b73755747ab20ba7aa1e46113c130a0f Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Fri, 14 Jul 2017 10:26:51 -0300 Subject: [PATCH] Merge pull request #7403 from RocketChat/fix-unread-bar [FIX] Fix Unread Bar Disappearing --- packages/rocketchat-ui/client/lib/readMessages.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/rocketchat-ui/client/lib/readMessages.js b/packages/rocketchat-ui/client/lib/readMessages.js index 4bd003eb658e..a6368ef0fedd 100644 --- a/packages/rocketchat-ui/client/lib/readMessages.js +++ b/packages/rocketchat-ui/client/lib/readMessages.js @@ -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); }