add Audio to i18n and minor tweak

This commit is contained in:
Reinaldo Neto 2023-07-04 00:54:25 -03:00
parent d39a5c7da2
commit 53ed61df39
4 changed files with 10 additions and 9 deletions

View File

@ -127,10 +127,10 @@ const ImageContainer = React.memo(
title_link: imageUri title_link: imageUri
})); }));
setCached(true); setCached(true);
setLoading(false);
} catch (e) { } catch (e) {
setLoading(false);
setCached(false); setCached(false);
} finally {
setLoading(false);
} }
}; };

View File

@ -119,18 +119,15 @@ const Video = React.memo(
...prev, ...prev,
video_url: cachedVideoResult.file?.uri video_url: cachedVideoResult.file?.uri
})); }));
setCached(true);
setLoading(false); setLoading(false);
setCached(true);
if (downloadActive) { if (downloadActive) {
cancelDownload(video); cancelDownload(video);
} }
return; return;
} }
if (downloadActive && !isReply) {
return;
}
setLoading(false);
if (isReply) { if (isReply) {
setLoading(false);
return; return;
} }
await handleAutoDownload(); await handleAutoDownload();
@ -162,6 +159,8 @@ const Video = React.memo(
video_url: videoUri video_url: videoUri
})); }));
setCached(true); setCached(true);
} catch {
setCached(false);
} finally { } finally {
setLoading(false); setLoading(false);
} }

View File

@ -730,5 +730,6 @@
"Video": "Video", "Video": "Video",
"Wi_Fi_and_mobile_data":"Wi-Fi and mobile data", "Wi_Fi_and_mobile_data":"Wi-Fi and mobile data",
"Wi_Fi": "Wi-Fi", "Wi_Fi": "Wi-Fi",
"Off": "Off" "Off": "Off",
"Audio": "Audio"
} }

View File

@ -718,5 +718,6 @@
"Video": "Vídeo", "Video": "Vídeo",
"Wi_Fi_and_mobile_data":"Wi-Fi e dados móveis", "Wi_Fi_and_mobile_data":"Wi-Fi e dados móveis",
"Wi_Fi": "Wi-Fi", "Wi_Fi": "Wi-Fi",
"Off": "Desativado" "Off": "Desativado",
"Audio": "Áudio"
} }