about summary refs log tree commit diff
path: root/src/view/com/composer/Composer.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-09-08 16:27:50 +0100
committerGitHub <noreply@github.com>2024-09-08 08:27:50 -0700
commit6c6a76b193edfd8bd46139b85fefd684ee557a8c (patch)
treeb5b0efddb02ded2d8cbd80bdae049a102a20e19f /src/view/com/composer/Composer.tsx
parent95aee146b63f53e1cc8c686ef28dc7059b2d557f (diff)
downloadvoidsky-6c6a76b193edfd8bd46139b85fefd684ee557a8c.tar.zst
[Video] Upload tweaks (#5228)
* use correct mime type

* fix wheel progress
Diffstat (limited to 'src/view/com/composer/Composer.tsx')
-rw-r--r--src/view/com/composer/Composer.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx
index 25ed6c769..a637b5996 100644
--- a/src/view/com/composer/Composer.tsx
+++ b/src/view/com/composer/Composer.tsx
@@ -1154,10 +1154,12 @@ function VideoUploadToolbar({state}: {state: VideoUploadState}) {
   const progress = state.jobStatus?.progress
     ? state.jobStatus.progress / 100
     : state.progress
-  let wheelProgress = progress === 0 || progress === 1 ? 0.33 : progress
+  const shouldRotate =
+    state.status === 'processing' && (progress === 0 || progress === 1)
+  let wheelProgress = shouldRotate ? 0.33 : progress
 
   const rotate = useDerivedValue(() => {
-    if (progress === 0 || progress >= 0.99) {
+    if (shouldRotate) {
       return withRepeat(
         withTiming(360, {
           duration: 2500,