GeezerVison is showing github.com — fix(mobile): preserve workspace image refresh during turns · pingdotgg/t3code@1e212b9
File tree
Expand file treeCollapse file tree
Open diff view settings
apps/mobile/src/features/threads
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: apps/mobile/src/features/threads/ThreadMarkdownImage.tsx +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -19,6 +19,7 @@ import { PresentationSource } from "../../components/ui/NativePresentation"; |
19 | 19 | import { useMediaActions } from "../../state/mediaActions"; |
20 | 20 | import type { MediaActionsSource } from "../../lib/mediaActionsSource"; |
21 | 21 | import { useAssetUrlState } from "../../state/assets"; |
| 22 | +import { WorkspaceMutationIdContext } from "./workspaceMutationIdContext"; |
22 | 23 | import { assetImageCacheKey } from "../../lib/assetImageSource"; |
23 | 24 | import { |
24 | 25 | MARKDOWN_IMAGE_MAX_WIDTH, |
@@ -280,7 +281,7 @@ export function ThreadMarkdownImage(props: { |
280 | 281 | const withGallery = useFilePreviewGallery(); |
281 | 282 | const revision = |
282 | 283 | props.resource._tag === "media-file" || props.resource._tag === "draft-workspace-file" |
283 | | - ? use(MarkdownImageRevisionContext) |
| 284 | + ? JSON.stringify([use(WorkspaceMutationIdContext), use(MarkdownImageRevisionContext)]) |
284 | 285 | : undefined; |
285 | 286 | const assetUrl = useAssetUrlState(props.environmentId, props.resource, revision); |
286 | 287 | const resourceKey = |
|