element-hq / element-ios

A glossy Matrix collaboration client for iOS
https://element.io
Apache License 2.0
1.73k stars 486 forks source link

Link preview in encrypted rooms (get par with the Web/Desktop experience) #7599

Open jacotec opened 1 year ago

jacotec commented 1 year ago

Steps to reproduce

  1. Post a link into an encrypted DM or room
  2. In Element Web and Desktop, a Link Preview is generated
  3. No link preview at all in Element-IOS

Outcome

What did you expect?

The user should have the same experience regardless if he's on mobile or on his notebook/PC using Element-Web or -Desktop. Missing Link previews is basically a pain and not like a modern messenger should behave.

I have the argument in my mind "the server is generating the preview and can't inject it into the chat due to the active E2EE". But Web and Desktop can, I suppose the preview is generated locally by the app.

Element-IOS should do the same. This will also not be a security issue as the creation happens fully locally and does not expose any details of the chat itself to the outside.

What happened instead?

Element-IOS does not show any link preview in encrypted rooms or DM chats.

Your phone model

iPhone 14 Pro Max

Operating system version

IOS 16.5

Application version

Element 1.10.13

Homeserver

Synapse 1.85.2

Will you send logs?

No

mistydemeo commented 3 months ago

@Velin92 / @jacotec Is this a feature where you'd accept community contributions?