Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ios/ShareViewController/ShareViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ class ShareViewController: UIViewController {

private func handleImageData(_ image: UIImage, folder: URL, completion: @escaping (FileSaveError?) -> Void) {
os_log("Handling image data")
let filename = "shared_image.png"
// Use a unique filename per share so the resulting file:// URI differs every time.
// A constant name produced an identical URI on every share, and the URI-keyed image
// cache kept serving the first decoded receipt. See https://github.com/Expensify/App/issues/95075
let filename = "shared_image_\(UUID().uuidString).png"
processAndSave(data: image.pngData(), filename: filename, folder: folder, completion: completion)
}

Expand Down
Loading