Skip to content

Commit 9d3a9a9

Browse files
committed
fix: tweak assign video media model in ThumbnailImage component
1 parent e3db0ae commit 9d3a9a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/mobile/src/modules/entry-list/templates/EntryNormalItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ const ThumbnailImage = ({
171171
const isPlaying = audioState === "playing"
172172
const isLoading = audioState === "loading"
173173

174-
const video = entry?.media?.find((media) => media.type === "video")
174+
const video = mediaModel?.type === "video" ? mediaModel : null
175175
const videoViewRef = useRef<null | VideoView>(null)
176176
const videoPlayer = useVideoPlayer(video?.url ?? "")
177177
const [showVideoNativeControlsForAndroid, setShowVideoNativeControlsForAndroid] = useState(false)

0 commit comments

Comments
 (0)