Skip to content

After sending a message in offline mode and going back to online, messages are repeated when refreshing the page #2451

@isagoico

Description

@isagoico

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


Expected Result:

Only 1 message should be displayed.

Actual Result:

Message is sent twice when refreshing the page after coming back online.

Action Performed:

  1. Log in to staging.expensify.cash
  2. Navigate to a conversation
  3. Disable the internet connection
  4. Send a message while offline
  5. Enable the internet connection and immediately refresh the page

Workaround:

If the user does not refresh the page only 1 message is displayed.

Platform:

Where is this issue occurring?

Web ✔️
iOS
Android
Desktop App
Mobile Web

Version Number: 1.0.24-1

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos:

OFFLINE.mp4

Expensify/Expensify Issue URL:


From @parasharrajat https://expensify.slack.com/archives/C01GTK53T8Q/p1618602399353800

ISSUE: After sending a message in offline mode and going back to online, messages is repeated(sent twice).

Upwork job: https://www.upwork.com/jobs/~0151bfc06bb91fc01c

Metadata

Metadata

Labels

DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions