Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

"New Messages" banner showing when flex-tab is accessed

Open danieljhochman opened this issue 9 years ago • 3 comments

I was able to reproduce this on https://demo.rocket.chat/

Steps to reproduce:

  1. Scroll up to somewhere other than the last message in the chat room
  2. Click "Starred Messages" flex-tab OR click "Search" flex-tab and perform a search
  3. You will see the blue "New Messages" banner show even though there are no new messages.

image

danieljhochman avatar Jul 27 '17 14:07 danieljhochman

I can no longer reproduce this. Strange.

danieljhochman avatar Aug 01 '17 19:08 danieljhochman

@engelgabriel - we are able to reproduce this.

  1. Go to room
  2. Scroll up from bottom of chat
  3. Someone sends a new message
  4. You see blue "New messages" banner
  5. Scroll down to bottom of chat, it disappears
  6. Scroll back up to chat room history
  7. Now go to perform a search - the "New messages" banner shows again

A related bug is that when the chat is in small iFrame mode, the Z-index on the banner is wrong. It shows above the grey background when accessing a flex tab. It should show below. The first bug is that it shouldn't be showing at all, but there are cases where a real "New Message" will come in while in a flex tab.

image

danieljhochman avatar Aug 03 '17 14:08 danieljhochman

I can also reproduce this anytime I click on a message URL ?msg=csv-example-1-1457707558000 and that message it not at the bottom of the chat history. Meaning, sometimes when you do an action (search, jump to message, which brings the messages to older messages, that blue banner is showing.

danieljhochman avatar Aug 08 '17 18:08 danieljhochman