element-hq / element-meta

Shared/meta documentation and project artefacts for Element clients
65 stars 11 forks source link

Show custom emoji's alt text in room list message preview #2435

Open HarHarLinks opened 3 weeks ago

HarHarLinks commented 3 weeks ago

Steps to reproduce

  1. enable room list message previews
  2. send/receive an MSC2545 "custom emoji" inline image that has a title and alt text "formatted_body": "<img data-mx-emoticon height=\"32\" src=\"mxc://tastytea.de/yPRKZOPRJnAxsUmQhmUTvaKO\" alt=\"neocat_sob\" title=\"neocat_sob\">",

Outcome

What did you expect?

as per MSC2545, the alt/title text of the <img> is the [custom emoji's] body. hence its alt/title text should be used in the message preview

What happened instead?

Operating system

I use arch btw

Browser information

yes

URL for webapp

develop.element.io

Application version

i meant to click element desktop, too late now... Element Nightly version: 2024060301 Crypto version: Rust SDK 0.7.0 (068a0af), Vodozemac 0.6.0

Homeserver

synapse 1.106.0

Will you send logs?

No

dbkr commented 5 days ago

Seems sensible to me, but this would be product's decision, although either way unlikely to be one for our roadmap I suspect.