-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix flashing messages on mobile (iOS & Android) #2205
Comments
Triggered auto assignment to @Beamanator ( |
The problem happens due to losing focus on the message being sent - the chat does not track message being sent to the chat. Instead it scrolls to bottom. When the message is added to the chat, it first added as being sent, then is loaded as a part of chat history. It leads to two messages in chat at the same time. Then one disappears. |
Hello, I'd like to take this on. Proposal
If this gets updated to use something unique that doesn't change like Here's a video of a working example with the changes above: Screen.Recording.2021-04-02.at.3.57.13.PM.mov |
Responding to @atesanec :
Could you please show what you mean here? I haven't been able to reproduce this "two messages in chat at the same time". I believe from the original video (posted by @trjExpensify ), he did actually send the same message twice - is this what you're talking about? |
Responding to @Maftalion : I like your solution to use
Could you send a video of what you're seeing here? I haven't been able to reproduce the "bouncing issue" mentioned 🤔 |
@Beamanator Of course! So with only the timestamp change, it still leads to this "bouncing" behavior: Screen.Recording.2021-04-05.at.8.48.58.AM.mov |
Thanks for the quick response @Maftalion ! That is very clear on your device! Funny I'm still not able to reproduce on an iPhone 11 simulator 😅 For now, let's move forward with the fix specific to this original issue only (messages "flashing") - You're more than welcome to open a new issue with the bouncing you see above (if one doesn't already exist) if you'd like :D |
@Beamanator Were you testing in a chat with a full block of text? it seems it only occurs for chats are longer than a page |
Nice one @Maftalion ! Now I can see it if I have a whole page of messages, and if I scroll up a tiny bit before sending a message 😆 |
This comment has been minimized.
This comment has been minimized.
I'm thinking to wait a few days to close this, until the latest dev version gets to production & we make sure flashing doesn't occur there. If not, we can close this out too - how does that sound @Maftalion ? |
Seems like we're good here. Closing! |
fwiw.. just tested on latest build and appears to be working correctly. Thanks @Maftalion and @Beamanator |
Thanks for double-checking @mallenexpensify ! |
👋 coming from here, reopening. Jason's example vid: 115783321-93b9ee80-a371-11eb-9053-c4e96aec9301.mov |
Hey @Maftalion! I know we closed out and paid this job in Upwork because the issue resolved itself, but given that it's back, could we proceed with the PR that was drafted initially? CC: @Beamanator |
Sounds good, is the PR going to be re-opened as well or should I open a new one? |
Done! |
In dev, on 1.0.32-1 I can't reproduce the flashing on android or iOS 🤷♂️ can you @Maftalion ? |
Reopening this since it's reproducible again in Android and iOS. Screen.Recording.2021-05-31.at.12.01.14.AM.movFrom @aliabbasmalik8 https://expensify.slack.com/archives/C01GTK53T8Q/p1622444615386400
|
Couldn't reproduce on iPhone 11, iOS 14.4, latest main (v1.0.59-3) 🤔 - asking Ali what he was on when he reproduced |
|
Well shucks, I was able to reproduce on the current Android staging version (1.0.61-8) today |
@Beamanator what do you propose we should do with this issue? I removed the |
Thanks for removing that label @mallenexpensify - I currently can't reproduce on the live app (v1.0.81-1) so I think we can close this again and reopen if the issue is reported again. Since it hasn't been reported again in a while, I imagine it was fixed along the way somewhere |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Platform - version:
iOS v1.0.9.4
Android - pixel 3. android 11 build rq2a.210305.006 - e.cash version v1.0.10-2
Action Performed (reproducible steps):
Expected Result:
Messages should not flash after being sent.
Actual Result:
Messages flash briefly after sending.
Notes/Photos/Videos:
iOS
Imagen.de.iOS.MOV
Logs - JS/Android/iOS (if applicable):
None.
Upwork: https://www.upwork.com/jobs/~010e50957068c0dff4
E/E: https://github.com/Expensify/Expensify/issues/159056
The text was updated successfully, but these errors were encountered: