googlechat
googlechat copied to clipboard
mautrix/googlechat is not 100% compatible with Element Export Chat HTML with Attachments
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.
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>