element-desktop
element-desktop copied to clipboard
Can't see images in exported chats because they are hidden with style="display:none"
Steps to reproduce
- Locate a conversation with images in Element desktop.
- Click "Export Chat", download and unzip.
- Verify "images" directory is present and contains the exported images.
- Open "messages.html" in a browser (I tested with both Firefox and Chromium)
- Images are not shown in the conversation.
- Inspect HTML code in "messages.html":
tags have style="display:none"
% find images
images
images/Screensho-8-22-2024 at 3-01-27 PM.jpg
images/imagejpeg_0-8-22-2024 at 4-57-59 PM.jpg
in messages.html:
63:<img style="display:none" src="images/Screensho-8-22-2024 at 3-01-27 PM.jpg" alt="Screensho.jpg"/>
65:<img style="display:none" src="images/imagejpeg_0-8-22-2024 at 4-57-59 PM.jpg" alt="imagejpeg_0.jpg"/>
Outcome
I expected images to be visible.
But due to style="display:none" they are not. I looked for javascript that would later remove it or resize the image, but did not find any.
Operating system
NixOS Linux
Application version
Element version: 1.11.75 Crypto version: Rust SDK 0.7.1 (c8c9d15), Vodozemac 0.6.0
How did you install the app?
Installed using NixOS derivation
Homeserver
matrixdotorg/synapse:v1.110.0
Will you send logs?
Yes