talk-android icon indicating copy to clipboard operation
talk-android copied to clipboard

Forward is not cleared after forwarding

Open nickvergessen opened this issue 3 years ago • 8 comments

Steps to reproduce

  1. Have a message/text in another app that allows forwarding
  2. Forward to talk android
  3. Go to a conversation and post it.
  4. Go back to the overview
  5. Click on another unread chat

Expected behaviour

Cleared behaviour

Actual behaviour

Input is filled with the same text again?

Not sure if this is expected, for me it's unexpected every time it happens.

nickvergessen avatar May 04 '22 16:05 nickvergessen

can not reproduce this... can you, @nickvergessen ?

mahibi avatar May 11 '22 14:05 mahibi

threema-20220511-163752655.jpg

As you can see i just forwarded it to you, i press back amd it shows the forwarding headline again

nickvergessen avatar May 11 '22 14:05 nickvergessen

aaah you mean the appbar header. so the error you describe is in step 4...

mahibi avatar May 11 '22 14:05 mahibi

can reproduce..

mahibi avatar May 11 '22 14:05 mahibi

Yeah and when from there you go to any other app it forwards the details again

nickvergessen avatar May 11 '22 14:05 nickvergessen

i guess in short term the line

showShareToScreen = !showShareToScreen && hasActivityActionSendIntent();

in https://github.com/nextcloud/talk-android/blob/master/app/src/main/java/com/nextcloud/talk/controllers/ConversationsListController.java#L360

might cause the bug and could be changed.

But the best solution for this would be that we create a seperate view instead of reusing the ConversationsListController for sharing/forwarding actions. But this would take a bit longer...

mahibi avatar May 11 '22 15:05 mahibi

Okay, anything but a quickfix os out of scope. So let's just keep the ticket in the backlog if anyone ever wants to do it.

I thought maybe its as simple as clearing a variable on posting

nickvergessen avatar May 11 '22 15:05 nickvergessen

i guess in short term the line

showShareToScreen = !showShareToScreen && hasActivityActionSendIntent();

in https://github.com/nextcloud/talk-android/blob/master/app/src/main/java/com/nextcloud/talk/controllers/ConversationsListController.java#L360

might cause the bug and could be changed.

might be caused by commit https://github.com/nextcloud/talk-android/commit/cf471e336f9f0a9623b224e75f551c190f2cf5a9

mahibi avatar May 11 '22 15:05 mahibi