element-hq / element-hq/element-web

"Download attachment" incorrectly reports "Error decrypting attachment" for network errors

Open
#28,016 7 comments 1 reaction 0 assignees View on GitHub
A-E2EE A-File-Download A-Media O-Occasional S-Minor T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

STR:

1. Upload a binary/text attachment (**not** an image/video) to an encrypted room.
2. Suppose that the media repo is having a bad day; alternatively, block requests to `/_matrix/media/v3/download/` in the devtools
3. Click on the attachment (**not** the "download" arrow, the attachment itself)
4. Observe:
![image](https://github.com/user-attachments/assets/0e277a64-06d7-4ffa-b178-b697f56172aa)

Oddly, the download button works correctly (reports "Download failed").

Likely related to https://github.com/element-hq/element-web/issues/27862

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.