Skip to content
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

Chat - messages sent while the conversation is loading in offline are not shown #44280

Closed
1 of 6 tasks
lanitochka17 opened this issue Jun 24, 2024 · 12 comments · Fixed by #44335
Closed
1 of 6 tasks

Chat - messages sent while the conversation is loading in offline are not shown #44280

lanitochka17 opened this issue Jun 24, 2024 · 12 comments · Fixed by #44335
Assignees
Labels
Engineering Hourly KSv2 Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 24, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.0.1-3
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): dawitseife9@gmail.com
Issue reported by: Applause - Internal Team

Action Performed:

  1. Login to an account
  2. Disable the internet connection in the device
  3. Navigate to a chat with history that you have not opened
  4. Notice that the chat opens and the loading animation is shown
  5. Sent a message

Expected Result:

Message is shown with 50% opacity

Actual Result:

Sent Message is not shown

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6522973_1719236388340.loading_issue.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jun 24, 2024
Copy link

melvin-bot bot commented Jun 24, 2024

Triggered auto assignment to @dangrous (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@lanitochka17
Copy link
Author

@dangrous FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp

@dangrous
Copy link
Contributor

Looks like #43970 (comment) - looking into it now. Not backend.

@dangrous
Copy link
Contributor

dangrous commented Jun 24, 2024

it's something with the definition of shouldShowSkeleton; if I hardcode that to false there's other weird behavior but the messages show.

Specifically, if I remove the (reportActions.length < paginationSize && !doesCreatedActionExists && !!reportMetadata?.isLoadingInitialReportActions) || part, it also shows the pending message correctly - but the skeleton doesn't show UNTIL you send the pending message, so it's somewhere in that line.

@dangrous
Copy link
Contributor

update: it's specifically the change from reportActions.length === 0 to reportActions.length < paginationSize. The pending messages come back if you swap that code OR if you add 50 pending messages (in which case they all show back up).

Not sure what's the best way to fix without side effects

@dangrous
Copy link
Contributor

reverting, to unblock

@dangrous dangrous added DeployBlockerCash This issue or pull request should block deployment and removed DeployBlockerCash This issue or pull request should block deployment labels Jun 24, 2024
Copy link

melvin-bot bot commented Jun 24, 2024

Current assignee @dangrous is eligible for the DeployBlockerCash assigner, not assigning anyone new.

@github-actions github-actions bot added Hourly KSv2 and removed Weekly KSv2 labels Jun 24, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@dangrous
Copy link
Contributor

oh labels got weird here, will fix after i confirm we're good to go

@dangrous dangrous removed the DeployBlockerCash This issue or pull request should block deployment label Jun 24, 2024
@dangrous
Copy link
Contributor

Okay this has indeed been fixed on staging! Copied test steps to original issue so they can ensure it's fixed in the next round.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering Hourly KSv2 Reviewing Has a PR in review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants