Skip to content

refactor(chat): move photo upload and sealing glue into FlipcashCore - #1039

Merged
bmc08gt merged 1 commit into
mainfrom
refactor/chat-media-core
Oct 11, 2026
Merged

bmc08gt merged 1 commit into
mainfrom
refactor/chat-media-core

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

Moves the photo upload and sealing code a share extension needs out of the app target and into FlipcashCore. No behaviour change; the share extension PR stacked on this one links it.

Moved: ChatMediaUploader and its blob-store seam, UploadedPhoto, the upload error classification, the plaintext/sealed send guard, the ImageIO decode, the BlurHash encoder, and display-name resolution.

Two seams replace app types the extension can't link:

  • Upload progress goes through a ChatPhotoUploadProgress protocol, which ChatPhotoSendProgress conforms to.
  • Conversation.displayName takes the contact-name lookup as a parameter instead of reaching into Contacts.

The app keeps SessionChatMediaBlobStore and a UIImage overload of the uploader.

ChatMediaUploader, its blob-store seam, UploadedPhoto, the upload error
classification, the plaintext/sealed send guard, ImageIO decode, the BlurHash
encoder and display-name resolution now live in FlipcashCore so a share
extension can link them without FlipcashUI. Upload progress is reported through
ChatPhotoUploadProgress, which ChatPhotoSendProgress conforms to, and the
contact-name lookup is injected into Conversation.displayName. The app keeps
SessionChatMediaBlobStore and a UIImage overload of the uploader.
@bmc08gt bmc08gt self-assigned this Oct 11, 2026
@bmc08gt
bmc08gt merged commit 7f84b60 into main Oct 11, 2026
3 checks passed
@bmc08gt
bmc08gt deleted the refactor/chat-media-core branch October 11, 2026 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant