element-hq / element-hq/element-web
Failed to load timeline position error dialog shown twice and blank chat triggered by pin that a user has no access to
- Dominant language
- TypeScript
- Stars
- 13.5k
- Forks
- 2.8k
- PR merge metrics
- PR metrics pending
Description
### Steps to reproduce
1. There is a chat room with messages and pins already in it.
2. A new user is invited to this chat room and joins
3. One of the pins to a message which the new user has no access to is unpinned
4. The new user clicks on the "a message" link in the chat history its "x unpinned **a message**
from this room." event.
### Outcome
#### What did you expect?
- An error dialog like the one shown "Failed to load timeline position
Tried to load a specific point in this room's timeline, but you do not have permission to view the message in question."
#### What happened instead?
The expected dialog is shown, but:
- The chat goes blank behind it
- Clicking ok on the error dialog shows a loading icon in the chat, after which the same dialog is opened a second time
- Closing this second error dialog leaves the user on a blank chat room
- The same outcome with different trigger is mentioned on issue: https://github.com/element-hq/element-web/issues/20927
### Operating system
_No response_
### Browser information
_No response_
### URL for webapp
_No response_
### Application version
_No response_
### Homeserver
_No response_
### Will you send logs?
No
Contributor guide
Assessment
This issue has not been assessed yet.