diff --git a/packages/rocketchat-ui/client/lib/readMessages.js b/packages/rocketchat-ui/client/lib/readMessages.js index fb41552e8879..249cf12f40b1 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); }