Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Threads are not visible to guests #1159

Open
MadLittleMods opened this issue Mar 17, 2023 · 6 comments
Open

Threads are not visible to guests #1159

MadLittleMods opened this issue Mar 17, 2023 · 6 comments
Labels
A-Guest-Access A-Threads O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect X-Spec-Changes

Comments

@MadLittleMods
Copy link

MadLittleMods commented Mar 17, 2023

Steps to reproduce

  1. Setup a public room where you just sent a thread root and some replies to it
  2. Visit the public room from a fresh incognito tab where you're not signed in
  3. Notice how thread summaries below recent thread roots are not visible
  4. Clicking on the threads action in the chat header see the list of threads available just shows a loading spinner forever
    • Behind the scenes /_matrix/client/v1/rooms/!aMzLHLvScQCGKDNqCB%3Agitter.im/threads just returns a 403 forbidden (no error state in the threads panel 😕)
Expected Actual

Outcome

What did you expect?

Threads are visible

And the thread panel properly shows an error if it happens

What happened instead?

Threads aren't visible for recent messages. Threads do seem to appear in the scrollback (probably some difference of /messages) and they appear if you received the messages as they come in.

The thread panel doesn't show an error about fetching threads if it occurs.

Operating system

Windows 10

Browser information

Chrome Version 111.0.5563.65

URL for webapp

develop.element.io

Application version

Element version: c8b3f5d51211-react-a86a8e7f8eee-js-23837266fca5 Olm version: 3.2.12

Homeserver

matrix.org

Will you send logs?

Yes

@MadLittleMods MadLittleMods added T-Defect S-Minor Impairs non-critical functionality or suitable workarounds exist A-Guest-Access O-Occasional Affects or can be seen by some users regularly or most users rarely A-Threads labels Mar 17, 2023
@t3chguy
Copy link
Member

t3chguy commented Mar 17, 2023

@MadLittleMods I'm not seeing any logs having come through from you

@t3chguy t3chguy added the X-Needs-Info This issue is blocked awaiting information from the reporter label Mar 17, 2023
@MadLittleMods
Copy link
Author

@t3chguy Added some 👍 (also very easy to reproduce)

@t3chguy t3chguy removed the X-Needs-Info This issue is blocked awaiting information from the reporter label Mar 17, 2023
@t3chguy
Copy link
Member

t3chguy commented Mar 17, 2023

Behind the scenes /_matrix/client/v1/rooms/!aMzLHLvScQCGKDNqCB%3Agitter.im/threads just returns a 403 forbidden (no error state in the threads panel 😕)

So this looks like not a web specific issue, other than the lack of an error message. Looks like we might need to hide the threads panel for guest users

@MadLittleMods
Copy link
Author

MadLittleMods commented Mar 17, 2023

So this looks like not a web specific issue, other than the lack of an error message. Looks like we might need to hide the threads panel for guest users

It does seem like a server/Synapse thing but feels like we could have the same ACL's for /threads as we do for /messages. I think that guests could use /_matrix/client/v1/rooms/!xxx/threads?include=all just fine. We probably want to hide "My threads" (include=participated) though.

@t3chguy
Copy link
Member

t3chguy commented Mar 17, 2023

@MadLittleMods that would require a spec change, as /threads isn't allowed for guests - https://spec.matrix.org/v1.6/client-server-api/#client-behaviour-14

@t3chguy
Copy link
Member

t3chguy commented Mar 17, 2023

Going to pivot into a meta issue to decide what we want to do here
options being double down on guests not able to use /threads and fix the UI around that or allowing it via spec & synapse

@t3chguy t3chguy transferred this issue from element-hq/element-web Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Guest-Access A-Threads O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect X-Spec-Changes
Projects
None yet
Development

No branches or pull requests

2 participants