Skip to content

[Due for payment 2025-08-15] [$250] Native share-Shared offline image disappears from the chat after going online #66831

Closed

Description

@mitarachim

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.1.84-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: https://test-management.browserstack.com/projects/2148171/folder/12015297/test-cases/39317532
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Device used: iPhone 15 iOS 18.5
App Component: Other

Action Performed:

  1. Launch ND Hybrid app and sign in with gmail account
  2. Create a chat with the other user, send some messages
  3. Navigate to the device's gallery, tap any image, select Share, then select Expensify app
  4. Select "Share" option when in the app, then the other User from Step 2
  5. Enable "Force offline" mode, type a message and tap "Share"
  6. Force kill and re-launch the app
  7. Navigate to the chat where you just shared an image, and Go online
  8. Wait 3-5 seconds and observe the chat history

Expected Result:

Shared offline image is displayed in the chat along with the comment

Actual Result:

Shared offline image disappears from the chat after refreshing the app enabling online mode

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6894736_1753142931990.Share_offline.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021948105471577063841
  • Upwork Job ID: 1948105471577063841
  • Last Price Increase: 2025-07-30
  • Automatic offers:
    • mkzie2 | Contributor | 108294736
Issue OwnerCurrent Issue Owner: @alexpensify

Activity

  1. added
    Daily
    Bug
    on Jul 22, 2025
  2. melvin-bot commented on Jul 22, 2025

    @melvin-bot

    Triggered auto assignment to @alexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. mkzie2 commented on Jul 22, 2025

    @mkzie2
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Shared offline image disappears from the chat after refreshing the app enabling online mode

    What is the root cause of that problem?

    We generate the blob file and pass it to addAttachment function. After closing the app and reopening it, the temporary file becomes invalid, so the image disappears.

    readFileAsync(
    currentAttachment.content,
    getFileName(currentAttachment.content),
    (file) => {
    if (isDraft) {
    openReport(
    report.reportID,
    '',
    displayReport.participantsList?.filter((u) => u.accountID !== currentUserID).map((u) => u.login ?? '') ?? [],
    report,
    undefined,
    undefined,
    undefined,
    );
    }
    if (report.reportID) {
    addAttachment(report.reportID, file, message);
    }
    const routeToNavigate = ROUTES.REPORT_WITH_ID.getRoute(reportOrAccountID);
    Navigation.navigate(routeToNavigate, {forceReplace: true});
    },
    () => {},
    currentAttachment.mimeType,
    );
    };

    What changes do you think we should make in order to solve the problem?

    We already have a solution to regenerate the blob file here, but it's only applied for receipt param. We should apply the same for file param

    if ((key === 'receipt' || key === 'file') && initiatedOffline) {
    

    if (key === 'receipt' && initiatedOffline) {

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    NA

    What alternative solutions did you explore? (Optional)

    Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

  4. added
    External
    on Jul 23, 2025
  5. melvin-bot commented on Jul 23, 2025

    @melvin-bot
  6. changed the title [-]Native share-Shared offline image disappears from the chat after going online[/-] [+][$250] Native share-Shared offline image disappears from the chat after going online[/+] on Jul 23, 2025
  7. added
    Help Wanted
    on Jul 23, 2025
  8. melvin-bot commented on Jul 23, 2025

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee (External)

  9. alexpensify commented on Jul 23, 2025

    @alexpensify
    Contributor

    @jjcoffee - can you please review if this proposal will fix the issue? Thanks!

  10. melvin-bot commented on Jul 28, 2025

    @melvin-bot

    @jjcoffee Eep! 4 days overdue now. Issues have feelings too...

  11. melvin-bot commented on Jul 30, 2025

    @melvin-bot

    📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

  12. 15 remaining items

  13. IuliiaHerets commented on Aug 7, 2025

    @IuliiaHerets

    The issue can't be more reproducible in v9.1.90-4 build

    Retest66831.mp4
  14. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Aug 8, 2025
  15. changed the title [-][$250] Native share-Shared offline image disappears from the chat after going online[/-] [+][Due for payment 2025-08-15] [$250] Native share-Shared offline image disappears from the chat after going online[/+] on Aug 8, 2025
  16. removed
    Reviewing
    on Aug 8, 2025
  17. melvin-bot commented on Aug 8, 2025

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  18. melvin-bot commented on Aug 8, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.90-11 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2025-08-15. 🎊

    For reference, here are some details about the assignees on this issue:

  19. melvin-bot commented on Aug 8, 2025

    @melvin-bot

    @jjcoffee @alexpensify The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  20. added
    Daily
    and removed
    Weekly
    on Aug 14, 2025
  21. alexpensify commented on Aug 15, 2025

    @alexpensify
    Contributor

    #67932 is the pull request for this one

  22. alexpensify commented on Aug 15, 2025

    @alexpensify
    Contributor

    Payment Summary

    Contributor: @mkzie2 paid $250 via Upwork
    Contributor+: @jjcoffee due $250 via NewDot

  23. quinthar commented on Aug 28, 2025

    @quinthar
    Contributor

    $250 approved for @jjcoffee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions