Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

Copy text copies incorrect message.

Open garrettgrimsley opened this issue 12 years ago • 15 comments

This bug only appears to be present when the Android OS opens a dialog. Using a long-press, I try to select a phone number that someone text me, but KitKat opens the "Complete action using" dialog. After dismissing the KitKat dialog the TextSecure dialog

  • Copy text.
  • Delete message.
  • Message details.
  • Forward message.

appears. I select "copy text" and it copies text that wasn't even on my screen.
If I select a part of the message that doesn't open the KitKat dialog this bug does not occur.

garrettgrimsley avatar Dec 24 '13 20:12 garrettgrimsley

Additionally, this TextSecure dialog should read "Copy message" for the sake of uniformity.

garrettgrimsley avatar Dec 24 '13 20:12 garrettgrimsley

This is happening to me also. Though it usually copies the text above or below the one selected, or the very last text in the conversation. Samsung Galaxy S III (SPH-L710) Android 4.3

joshuavorbiszW avatar Jun 18 '14 21:06 joshuavorbiszW

Did you also try to delete a message? If so, was the right one deleted? If not, would you try?

McLoo avatar Jun 18 '14 21:06 McLoo

I've had issues with that before too: not being able to delete messages and the wrong message being deleted.

joshuavorbiszW avatar Jun 18 '14 23:06 joshuavorbiszW

I have the same problem when copying messages. Most times, I want to copy the last one (either to forward an incoming one to someone other, or if I want to send one SMS to different contacts (because TS can't send sms to different contacts at once (unitl now?))) But instead it copies the one before the last one...

I'm running TS 2.1.1 on Android 4.1.2

I haven't tried it what happens at deleting messages

Genis-Sage avatar Jul 22 '14 08:07 Genis-Sage

@Genis-Sage @dhermosillo is this still happening? is this reproducible or sporadic?

Could you describe the exact steps what you did in such a case when this happens? like: open ts, write message, receive message, screen off, scroll, select + copy message, ... copied message contains media? url? number? ... how long where the message? or better how much messages where on the screen? screenshot would be nice :) And please also post the debug log after that happens.

@mcginty (and maybe @phenx-de) what i could reproduce is

  • select a message, scroll it out of view, then select copy --> you'll copy the message at the position where the selected message was
  • select a message, receive a message, click the copy --> copies first message in view
  • no keyboard open, select message, click in compose text box, press copy --> last partly visible message gets copied

This out of view out of memory is an issue here

McLoo avatar Aug 02 '14 07:08 McLoo

So today I had the things with deleting: I got a unencrypted SMS twice (as it sometimes happens) and so I wanted to delete one of them. But instead of deleting the selected one, it deleted the one at the top of my screen.

I was a bit slow with taking the debug log (20 minutes) so I don't know if it's still helpful. http://hastebin.com/cawefuruze

What I did (today): Wrote SMS to my contact, home button, screen off by time 1 minute later: first answer, open TS reading message, home button, screen off by time 50 minutes later: got a new sms twice, wrote an answer, tried to delete one of the duplicated sms, TS deleted wrong message... I never scrolled during this time...

I can't reproduce it just at the moment, but it happens too often for saying it's only sporadic

Genis-Sage avatar Aug 27 '14 10:08 Genis-Sage

I also had the delete bug happen today. Instead of deleting the one I selected, it deleted a different one.

I did notice two curious things:

  1. If you back out to the conversation list then return to the conversation, sometimes the delete works correctly again.
  2. When delete works correctly, it highlights the entire row. When it doesn't work, it only highlights the text, and then deletes an entirely different message.

The message deleted when it doesn't work seems to be random.

joshuavorbiszW avatar Aug 27 '14 17:08 joshuavorbiszW

@McLoo for copying text, go into a conversation, long-touch on a message (not at the bottom of the screen) until the copy/paste dialog appears, select copy all, paste into the message line. The pasted text will be whatever is in the message at the bottom of the screen, regardless of content.

joshuavorbiszW avatar Aug 27 '14 17:08 joshuavorbiszW

@McLoo for deleting messages, it works the same way as copying, except that sometimes it deletes the desired one, and sometimes it deletes a random one.

joshuavorbiszW avatar Aug 27 '14 17:08 joshuavorbiszW

Steps to reproduce (copy):

  1. Go into a conversation
  2. Select field for typing new message (Keyboard opens)
  3. Select a message by long-pressing
  4. Press back button (Keyboard disappears)
  5. Press copy
  6. Long-press new message field and paste --> Text of (random?) message is inserted

boehan avatar Aug 28 '14 08:08 boehan

It seems to help if you jump between messages: Press long on a random one, until the menu changes, and then click on the one you want to choose. And then it's seems to copy/delete the right one.

But this can also be some kind of coincidence.

Genis-Sage avatar Sep 15 '14 21:09 Genis-Sage

I'm unable to reproduce this on my Nexus 5 running stock Lollipop and TS 2.6.4, anyone else still having this issue?

rhodey avatar Mar 16 '15 20:03 rhodey

Yes, it's even worse in the newest release of TS. Now the copy function blinks away before the user has time to select it.

joshuavorbiszW avatar Mar 16 '15 22:03 joshuavorbiszW

the issue described by @dhermosillo is documented in #2333. I remember experiencing copy-wrong-text issue awhile back, but no longer, and no one else has checked in to say that they have either, so closing this issue as resolved.

rhodey avatar Apr 10 '15 21:04 rhodey