RocketChat / Rocket.Chat

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

Unable to load individual message when viewed anonymously #9325

Open robbyoconnor opened 6 years ago

robbyoconnor commented 6 years ago

Description:

I seem to be unable to jump to a linked message if I view a channel anonymously.

Server Setup Information:

Steps to Reproduce:

`

  1. Ensure that anonymous read is enabled, no need for write.
  2. As an authenticated user, grab a permalink for a message, have it be an older message.
  3. Go incognito in your browser and view the message -- it doesn't jump to that message.

Expected behavior:

I expect to see the chat history relative to the linked message

Actual behavior:

I don't see that linked message.

Relevant logs:

Not sure if applicable, will gather if needed.

pdurbin commented 5 years ago

Hello! I'm seeing the same problem and I thought I'd add a concrete example and some screenshots.

In my case I'm talking about a permalink to a line in the "team_devel_mac" in an installation of Rocket.Chat for Inkscape. Most if not all channels are completely open to the public without login. The problem is that it's not possible for anonymous users to follow links to specific lines. Instead, they are brought to the most recent messages in the channel. Let's see an example.

Yesterday I introduced myself with "Hello! I just bumped into..." and the permalink is https://chat.inkscape.org/channel/team_devel_mac?msg=ZnBKxDk98Fnizrfq5

If I am logged in, as in the Firefox screenshot below, I am taken directly to the message in question (great!):

Screenshot from 2019-08-18 09-35-19

However, if I open another browser such as Chrome in the screenshot below, where I am not logged in to Rocket.Chat, instead of going to the message I linked to, I am brought only to the channel itself with the latest messages visible, rather than the message I linked to:

Screenshot from 2019-08-18 09-35-48

When I send a permalink to someone I would rather not say, "To view the conversation that this permalink links to, you must first sign up for an account and log in." I would much prefer for the permalink to "just work" for users who are not logged in to Rocket.Chat.

I hope this helps clarify the issue. Thank you to the Rocket.Chat developers for what seems like a great piece of software! The fact that Rocket.Chat can be configured to run in a public (no login required) fashion like this is perfect for open source where we try to make decisions in the open. Now we just need working, open permalinks. :smile: