RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.4k stars 10.51k forks source link

Search doesn't recognise when refreshed #23653

Open sidmohanty11 opened 2 years ago

sidmohanty11 commented 2 years ago

Description:

Search Messages doesn't work after refresh or even if you directly open a certain channel without interacting with the UI (for example, directly opening https://open.rocket.chat/channel/dev) and using the search doesn't work as there seems to be no reference to rid.

Steps to reproduce:

  1. Click on any channel and make sure it's selected (UI gets highlighted).
  2. Go to search(magnifying button) and search for any message
  3. Refresh the page.
  4. Notice UI for the channel doesn't get highlighted anymore.
  5. Search for the same thing to get "No results".

Expected behavior:

Search should have worked as it was working earlier.

Actual behavior:

Search doesn't work.

issue-with-search

ankar84 commented 2 years ago

I guess that issue related to https://github.com/RocketChat/Rocket.Chat.Electron/issues/2163

sidmohanty11 commented 2 years ago

@ankar84 I haven't tried the Desktop version yet but I think that this maybe the case.

Ayush01729 commented 2 years ago

@ankar84, it's the same case for the desktop version too. I confirmed.

Ayush01729 commented 2 years ago

@sidmohanty11, could we use windows.localstorage to save and retrieve the data once the page is refreshed?