App icon indicating copy to clipboard operation
App copied to clipboard

Android/iOS app unread chat disappears when accessing a different DM

Open mallenexpensify opened this issue 6 years ago • 12 comments

On version 46. To replicate

  • have a user, or two, send you chats
  • open iOS app
  • click into multiple rooms to see if DMs still show as unread (they should, that shouldn't be an issue)
  • open chat switcher, type the name of a user you don't have an unread chat from
  • see if the unreads disappear as this happens or when you go back to a room or another 'new' DM

video 1 - you can see the unread from Chirag disappear. Vid 2 - go to 1:30 to see something similar.
cc @AndrewGable

mallenexpensify avatar Sep 09 '20 23:09 mallenexpensify

@jboniface thing this should be HIGH and on milestone? or... maybe just review mediums like this once we're live and stable then see if we want to bump any up?

mallenexpensify avatar Sep 10 '20 02:09 mallenexpensify

This seems like it should be MEDIUM but on the milestone

jboniface avatar Sep 10 '20 14:09 jboniface

Will start diving into this one today.

timszot avatar Sep 15 '20 17:09 timszot

Can't seem to reproduce this on the simulator. @mallenexpensify can you confirm if this is happening still on the latest version?

timszot avatar Sep 15 '20 18:09 timszot

still happening on v1.01(54) https://drive.google.com/file/d/1RMJ5z7fpx9Z924Z5u6P70EgI7f4MqgN9/view?usp=sharing

mallenexpensify avatar Sep 15 '20 20:09 mallenexpensify

This doesn't happen on Desktop or Web, not sure about Android

mallenexpensify avatar Sep 15 '20 20:09 mallenexpensify

This doesn't happen on Desktop or Web, not sure about Android

Yup, I was only trying it on the iOS simulator

timszot avatar Sep 15 '20 20:09 timszot

OK, still can't reproduce this on dev iOS sim. Going to work on see if I can repro this on my actual iPad and maybe I can capture some logs from that device that might help.

timszot avatar Sep 15 '20 22:09 timszot

Ah ha! Got it reproduced on my Android phone. Going to go from there.

timszot avatar Sep 15 '20 22:09 timszot

Alright, still learning my way around this code, but here's what I've got so far. If you have unread DMs on Android and iOS, then putting focus onto the ChatSwitcherSearchForm is clearing those DMs from the ChatSwitcherList. This is not reproducible on Web or Desktop. I'm specifically looking into what ChatSwitcherView::triggerOnFocusCallback() is doing (or not doing...) since that is triggered as soon as focus is given to the ChatSwitcherSearchForm. Going to keep digging and trying to figure this out some more tomorrow.

timszot avatar Sep 15 '20 23:09 timszot

Also noticed this morn that once it disappeared on mobile, it's gone. Meaning, when I log into Desktop the chat doesn't appear there.

Bumping to HIGH since 'disappearing messages' would hinder adoption and we don't want people to only use email for Chat.

mallenexpensify avatar Sep 17 '20 15:09 mallenexpensify

Was taking care of other PRs and in meetings all afternoon so no real progress on this. Going to make it my main focus tomorrow.

timszot avatar Sep 17 '20 22:09 timszot