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
}));
setCached(true);
setLoading(false);
} catch (e) {
setLoading(false);
setCached(false);
} finally {
setLoading(false);
}
};

View File

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

View File

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

View File

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