element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.16k stars 1.99k forks source link

RTE - the message is not sent (and lost) if a link is added in it #26994

Open giomfo opened 8 months ago

giomfo commented 8 months ago

Steps to reproduce

  1. Turn on the RTE from the Labs settings

  2. Type a new message by adding a matrix.to link to an event with the composer option:

    image
  3. Send the message

Outcome

What did you expect?

the message is sent, and appears in the room timeline

What happened instead?

the composer is empty and no message has been sent

Operating system

No response

Browser information

No response

URL for webapp

No response

Application version

Element version: c64af5671a49-react-552c65db98b5-js-1b7695cdca84 Crypto version: Rust SDK 0.7.0 (fac36bc), Vodozemac 0.5.1

Homeserver

No response

Will you send logs?

No

MidhunSureshR commented 8 months ago

I can't reproduce this issue; can you please post exactly what was entered in the composer?

giomfo commented 8 months ago

I reproduced with Element version: 92c831094d11-react-35ad92bf540a-js-d03db1740586 Crypto version: Rust SDK 0.7.0 (fac36bc), Vodozemac 0.5.1

Here is a screenshot of the composer where "link" is a link to a permalink (matrix.to url):

image

fyi Logs has been sent

giomfo commented 8 months ago

@MidhunSureshR this is working if I don't use matrix.to url for the link

MidhunSureshR commented 8 months ago

Works for me on the same version with matrix.to link: image

Thanks for the logs!

giomfo commented 8 months ago

@MidhunSureshR did you test by using the link option of the composer:

image

Send directly the matrix.to url is working on my side too. The bug is when the link option is used

MidhunSureshR commented 8 months ago

@giomfo :

https://github.com/element-hq/element-web/assets/7010307/ce269a3e-7e1b-4eda-8cc7-139b4a9ba3d9

giomfo commented 8 months ago

@MidhunSureshR In my case the link is a link to an event (a permalink), not a room link Screen Recording 2024-02-19 at 14 46 53

MidhunSureshR commented 8 months ago

Can reproduce with a link to an event :+1: