diff --git a/fastlane/metadata/en-US/release_notes.txt b/fastlane/metadata/en-US/release_notes.txt index 568f648b..4fe3f481 100644 --- a/fastlane/metadata/en-US/release_notes.txt +++ b/fastlane/metadata/en-US/release_notes.txt @@ -1,2 +1,3 @@ Enjoy toooting! This version includes following improvements and fixes: - Allowing adding more context of reports +- Option to disable autoplay gif diff --git a/fastlane/metadata/zh-Hans/release_notes.txt b/fastlane/metadata/zh-Hans/release_notes.txt index 1f213bc2..6790fea0 100644 --- a/fastlane/metadata/zh-Hans/release_notes.txt +++ b/fastlane/metadata/zh-Hans/release_notes.txt @@ -1,2 +1,3 @@ toooting愉快!此版本包括以下改进和修复: - 可添加举报细节 +- 新增暂停自动播放gif动画选项 \ No newline at end of file diff --git a/src/components/Timeline/Shared/Attachment/Video.tsx b/src/components/Timeline/Shared/Attachment/Video.tsx index 78e53ac4..e510ab73 100644 --- a/src/components/Timeline/Shared/Attachment/Video.tsx +++ b/src/components/Timeline/Shared/Attachment/Video.tsx @@ -8,6 +8,8 @@ import AttachmentAltText from './AltText' import { Platform } from 'expo-modules-core' import { useAccessibility } from '@utils/accessibility/AccessibilityManager' import { aspectRatio } from './dimensions' +import { useSelector } from 'react-redux' +import { getSettingsAutoplayGifv } from '@utils/slices/settingsSlice' export interface Props { total: number @@ -25,6 +27,7 @@ const AttachmentVideo: React.FC = ({ gifv = false }) => { const { reduceMotionEnabled } = useAccessibility() + const autoplayGifv = useSelector(getSettingsAutoplayGifv) const videoPlayer = useRef