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

mautrix/googlechat is not 100% compatible with Element Export Chat HTML with Attachments #86

Open
eTomte opened this issue Mar 30, 2023 · 1 comment

Comments

@eTomte
Copy link

eTomte commented Mar 30, 2023

I have three different rooms:

One is a room with only Matrix users
Another is a room bridged with mautrix/whatsapp
Third is a room bridged with mautrix/googlechat

If I use the Element Export Chat feature, selecting HTML with Attachments, all three will create the HTML, and also a folder that has all of the images from the chat in it.

However when I view the HTML in a browser, I can see the images in the chat show up inline for the Matrix chat and the whatsapp bridged chat, but for the bridged googlechat I can only see the images that I posted inline (i.e., the images posted with my Matrix user.) The images that came across the bridge do not show up in the exported HTML, even though they show up fine in the chat itself, and they are in the attachments folder that got exported.

I'm guessing there must be some tiny little difference between how this is implemented in mautrix/googlechat versus mautrix/whatsapp that accounts for the different results.

@eTomte
Copy link
Author

eTomte commented May 16, 2023

broken:

<a href="https://matrix.to/#/!ZwmqlTNRfrKEADPlKq:matrix.example.org/$8qkhN-ZQR0vDxZlGp6F9V3-ekbhtJBbKuVaGC2ZYKfo" aria-label="13:57"><span class="mx_MessageTimestamp" title="Tue, Dec 27 2022 13:57:18" aria-hidden="true" aria-live="off">13:57</span></a><div class="mx_MImageBody"><a href="images/unnamed-12-27-2022 at 1-57-18 PM.jpg" target="_blank"><img style="display:none" src="images/unnamed-12-27-2022 at 1-57-18 PM.jpg" alt="unnamed.jpg"/></a></div></div></li></div>

works:

<a href="https://matrix.to/#/!ZwmqlTNRfrKEADPlKq:matrix.example.org/$STjBRGWt_AlSJJGhSqwkD-3PsTV3yp4Xy4xlWTaR5fs" aria-label="11:36"><span class="mx_MessageTimestamp" title="Wed, Jan 11 2023 11:36:57" aria-hidden="true" aria-live="off">11:36</span></a><div class="mx_MImageBody"><a href="images/image-1-11-2023 at 11-36-57 AM.png" target="_blank"><div class="mx_MImageBody_thumbnail_container" style="max-height:393px;max-width:285px;aspect-ratio:285/393"><div style="max-height:393px;max-width:285px"><img class="mx_MImageBody_thumbnail" src="images/image-1-11-2023 at 11-36-57 AM.png" alt="image.png"/></div></div></a></div></div></li></div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant