-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Chat switcher - Old chat is still displayed when selecting new chat in chat switcher #3822
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
Comments
Triggered auto assignment to @francoisl ( |
Not sure I understand the reproduction steps
Top of the chats list in the left menu, or in the quick switcher? And, top as in the first entry in the list if there are multiple? Or top as in it's the active chat? |
@francoisl I uploaded a vid here but it has personal chat details so it's only viewable to internal Expensify folks. https://drive.google.com/file/d/1ngIBwYXSEgtFHg8Lg53Ot9OGhrD9qVrQ/view?usp=sharing. It's not related to the chat switcher for the main message pane
|
Thanks Matt for the video, that makes it clearer. I can't reproduce on v1.0.75-5 (staging version atm). Let's see if you guys can still reproduce when it's promoted to the production version, but it seems like it's already resolved. |
This is happening again but to repro steps are different, I'm confident it's the same issue though. I'm going to assign to myself and make it a weekly to see if I can outline the repro stuff AND get others to actually reproduce |
Still happening on version 1.0.80-2, production, which I just updated to. Here's a vid updated.short.vid.mp4Steps
|
Triggered auto assignment to @deetergp ( |
@deetergp I imagine this is external. Thing there is enough detail for someone to work on? Repro steps are above and theres a vid now |
@mallenexpensify In the vid you posted, the Search was not completed before you press enter. |
But it should have returned something based on the keystrokes I entered vs nothing. ie. in Slack, it never happens that I type a few letters then enter and 'nothing happens'. I'm guessing it's happened 100+ times to me the past month (not exaggerating) . And it espec sucks when you send the wrong chat to someone cuz the chat wasn't switched |
Reproducible on web. I don't know how to fix this yet, will update later today. Screencast.from.29-07-21.05_31_24.AM.+03.mp4 |
@mallenexpensify Pretty sure it's because of a 'high' debounce timeout of 300 ms. Changing it to a lower value like 50 ms, fixes the issue. We could also delay Enter key press by the timeout value. This way, the chat is only selected after search is complete. Line 69 in 470d9de
Screencast.from.29-07-21.06_01_57.AM.+03.mp4 |
@rushatgabhane thanks for the 👀, I just came here to add something like what you said
In general, I def don't think we should penalize people for typing fast (mostly unrelated, I try to navigate NewDot from my keyboard as much as possible and LOVE keyboard shortcuts) |
Definitely external |
@rushatgabhane Can you confirm your fix works on the Desktop App, since that's where it was reported? |
75ms is the highest time that does the trick for me.
@mallenexpensify yes. Firstly, it'll lead to more re-renders when searching. (Hard to quantify as it depends on typing speed)
Moreover, this issue will still happen if you press Enter within 75ms of typing the last character. (Humans aren't that fast, so no need to worry here) In conclusion, since it's all frontend and no API calls are made when filtering, I don't think reducing the debounce time to 75ms is such a bad idea. |
@deetergp |
@rushatgabhane Proposal sounds good to me. Let's do it! |
https://www.upwork.com/jobs/~01fa161c1944380e84 |
@mallenexpensify Done ✅ |
@deetergp, @mallenexpensify, @rushatgabhane Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Looks like this was deployed to staging 7 days ago and there have been no regressions. Also just tested quickly on production, desktop and it appears to be working. Paid @rushatgabhane in Upwork. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Open the correct chat
Actual Result:
Previous chat is displayed.
Workaround:
Unknown
Platform:
Where is this issue occurring?
Web
iOS
Android
Desktop App ✔️
Mobile Web
Version Number: 1.0.73-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Logs:
Expensify/Expensify Issue URL:
View all open jobs on Upwork
From @mallenexpensify https://expensify.slack.com/archives/C01GTK53T8Q/p1624980659215800
The text was updated successfully, but these errors were encountered: