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

No way to return to an uncreated DM

Open robintown opened this issue 3 years ago • 5 comments

Steps to reproduce

  1. Open a DM with someone
  2. Start writing a message
  3. Switch to another room

Outcome

What did you expect?

I should be able to switch back to the DM, either from the room list or the search dialog, and continue drafting my message.

What happened instead?

The DM is nowhere to be found in the room list or the search dialog, and so the message I was writing is lost.

Operating system

NixOS unstable

Browser information

Firefox 104.0

URL for webapp

develop.element.io

Application version

Element version: 143632adb008-react-219f4fae3d97-js-e87ce873b028 Olm version: 3.2.12

Homeserver

Synapse 1.66.0

Will you send logs?

No

robintown avatar Sep 02 '22 17:09 robintown

This behaviour is sub-optimal and I understand the issue. But it works as planned.

I talked with @giomfo about it and we are planning to continue working on DM issues with lower priority. So this may be planned at some point in the future.

weeman1337 avatar Sep 05 '22 07:09 weeman1337

Maybe as a stopgap we should warn when trying to leave the room that data loss will occur (if the user has a composer draft)

t3chguy avatar Sep 05 '22 07:09 t3chguy

@gaelledel I think we would need a design for this use case

I was suggesting to store the pending message to display it in the composer if the same matrixId is selected again to start a DM. We have to decide if we want to support the case where multiple contacts have been selected. I'm not fan to keep the local (uncreated) room in the room list

giomfo avatar Sep 12 '22 13:09 giomfo

Thanks for your suggestions. I would recommend as per Giom's suggestion above. No message warning upon navigating in another room > the room is not created > Simply keep the message data if the user starts the DM flow again. This is not a Major regression

gaelledel avatar Sep 12 '22 13:09 gaelledel

This is infuriating

richvdh avatar Aug 29 '24 10:08 richvdh