Skip to content

Commit 55c48b7

Browse files
ahalekellyclaude
andcommitted
fix(mobile): full-screen composer images show the picker's original
The composer image gallery opens previewUri, which for picked photos is the full-resolution picker copy rather than the resized send copy. The picker's free slots go back to counting only attachments in the draft. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 9f45806 commit 55c48b7

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎apps/mobile/src/lib/composerImageGallery.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function composerImageGallery(
2828
return [{ kind: "image", name: attachment.name, attachment }];
2929
}
3030
return attachment.type === "image"
31-
? [{ kind: "image", name: attachment.name, uri: attachment.dataUrl ?? attachment.previewUri }]
31+
? [{ kind: "image", name: attachment.name, uri: attachment.previewUri }]
3232
: [];
3333
});
3434
}

‎apps/mobile/src/state/use-composer-attachment-actions.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ export function useComposerAttachmentActions(props: {
7070
await withDraftOperation(key, async (signal) => {
7171
let placeholderIds: ReadonlyArray<string> = [];
7272
await pickComposerMedia({
73-
existingCount:
74-
countComposerDraftAttachmentsAfterSelection(key, insertion) +
75-
(appAtomRegistry.get(composerPendingMediaAtom)[key]?.length ?? 0),
73+
existingCount: countComposerDraftAttachmentsAfterSelection(key, insertion),
7674
maxVideoBytes: capabilities?.fileAttachments?.maxUploadBytes,
7775
onPicked: (placeholders) => {
7876
placeholderIds = placeholders.map(({ id }) => id);

0 commit comments

Comments
 (0)