signalapp / Signal-iOS

A private messenger for iOS.
https://signal.org
GNU Affero General Public License v3.0
10.78k stars 3.02k forks source link

Clipboard copy/cut always copies/cuts complete message #5637

Closed Hiltiprant closed 1 year ago

Hiltiprant commented 1 year ago

Bug description

When editing text in the text field in any chat, you can copy/cut/paste text. But when you only want to copy/cut parts of your message, this is not possible. Signal will always copy/cut the complete message, even if you selected only one word for example.

Steps to reproduce

Actual result: The complete message (e.g. "This is a stupid test message") is pasted. There is a difference between copying and cutting, though. When copying, the complete message is copied and pasted. But when cutting, only the selected word is removed from the original message (leaves you with "This is a test message"), but apparently the complete message is copied and put into the clipboard.

Expected result: Only the selected portion of the message (e.g. "stupid") should be copied and pasted on the other end. Not always the complete message.

Screenshots

Type text, select one word and select copy: 1_copy

Add a new line and place cursor: 2_copy-paste

Select paste: result. Then select one word again and select cut: 3_cut

Add a new line again and place cursor: 4_cut-paste

Select paste: end result: 5_end-result

Device info

Device: iPhone 13

iOS version: 16.6

Signal version: 6.34.0.10

Link to debug log

https://debuglogs.org/ios/6.34.0/fb3584f0f50165ef198dd04b97b79ea6e33db3e35dcf0a48b1ac0021c104f34b.zip

Miguel-Signal commented 1 year ago

Hi @Hiltiprant,

Could you please update to the latest version of Signal (v6.35) and see if this resolves the issue?

pete-signal commented 1 year ago

This should be fixed in the upcoming 6.36 relase

Hiltiprant commented 1 year ago

Hi guys, thanks for your replies. I just tested it on v6.35.0.9 and I don't see any issues any more. Looks like I was a little too early, the update reached me shortly after posting the issue, sorry for that. The issue can be closed from my side.