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

Can't see images in exported chats because they are hidden with style="display:none" #1844

Open
presto8 opened this issue Aug 23, 2024 · 0 comments
Labels
A-Export-Chat O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect

Comments

@presto8
Copy link

presto8 commented Aug 23, 2024

Steps to reproduce

  1. Locate a conversation with images in Element desktop.
  2. Click "Export Chat", download and unzip.
  3. Verify "images" directory is present and contains the exported images.
  4. Open "messages.html" in a browser (I tested with both Firefox and Chromium)
  5. Images are not shown in the conversation.
  6. 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

@dosubot dosubot bot added A-Export-Chat O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist labels Aug 23, 2024
@MidhunSureshR MidhunSureshR added O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround and removed O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist labels Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Export-Chat O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect
Projects
None yet
Development

No branches or pull requests

2 participants