Skip to content

Commit 38bdbd9

Browse files
committed
fix(mobile): refresh workspace PDF URLs before sharing
1 parent 8bd4a7b commit 38bdbd9

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎apps/mobile/src/features/files/ThreadFilesRouteScreen.tsx‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,16 @@ export function ThreadFileScreen(props: ThreadFileRouteScreenProps) {
845845
kind: "pdf",
846846
uri: previewUri,
847847
name: basename(relativePath),
848+
...(environmentId !== null && assetPreview.resource !== null
849+
? {
850+
actionsSource: {
851+
name: basename(relativePath),
852+
mimeType: "application/pdf",
853+
environmentId,
854+
resource: assetPreview.resource,
855+
},
856+
}
857+
: {}),
848858
}),
849859
} as const)
850860
: null,

0 commit comments

Comments
 (0)