element-web icon indicating copy to clipboard operation
element-web copied to clipboard

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

Open giomfo opened this issue 1 year ago • 8 comments

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

giomfo avatar Feb 09 '24 19:02 giomfo

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

MidhunSureshR avatar Feb 14 '24 10:02 MidhunSureshR

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 avatar Feb 14 '24 11:02 giomfo

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

giomfo avatar Feb 14 '24 11:02 giomfo

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

Thanks for the logs!

MidhunSureshR avatar Feb 14 '24 11:02 MidhunSureshR

@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

giomfo avatar Feb 15 '24 13:02 giomfo

@giomfo :

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

MidhunSureshR avatar Feb 15 '24 14:02 MidhunSureshR

@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

giomfo avatar Feb 19 '24 13:02 giomfo

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

MidhunSureshR avatar Feb 21 '24 06:02 MidhunSureshR