Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: re-check fullQualityImages availability on every compress toggle tap

kashaf-ansari-devdd3ced17ded4
diff --git a/apps/mobile/app/share/share.tsx b/apps/mobile/app/share/share.tsx
index f81217c34..e29971a88 100644
--- a/apps/mobile/app/share/share.tsx
+++ b/apps/mobile/app/share/share.tsx
@@ -711,9 +711,10 @@ const ShareView = () => {
width: "100%",
marginTop: 6
}}
- onPress={() => {
- if (fullQualityImages?.isAllowed) {
- setCompress(!compress);
+ onPress={async () => {
+ const feature = await isFeatureAvailable("fullQualityImages");
+ if (feature?.isAllowed) {
+ setCompress((prev) => !prev);
}
}}
>