signalapp / Signal-Desktop

A private messenger for Windows, macOS, and Linux.
https://signal.org/download
GNU Affero General Public License v3.0
14.16k stars 2.57k forks source link

undo after paste removes text but not images or attachments #6878

Closed jumper444 closed 1 month ago

jumper444 commented 1 month ago

Using a supported version?

Overall summary

Pasting text (ctrl-v or menu) when writing a message can be undone/removed by hitting ctrl-z (or using menu). But if you paste in an image or attachment hitting undo (ctrl-z or menu) will not remove/undo it. You have to instead switch to mouse control and navigate to hit "x" on the attachment/image icon.

Expected result: ctrl-z (or undo from menu) should undo last action consistently. A paste of attachment or image should be removed by undo/ctrl-z just like text. It currently does not.

Steps to reproduce

REPRODUCTION: paste text into a message then hit ctrl-z; text removes; Paste image or file attachment (copy from Windows Explorer) into message, then hit ctrl-z (or 'undo' on menu). Image or attachment are not removed (nothing happens).

Signal version

7.8.0

Operating system

Windows 10.0.19045

trevor-signal commented 1 month ago

@jumper444 closing as this is a feature request; feel free to discuss this at the community forums: https://github.com/signalapp/Signal-Desktop/issues/5541