about summary refs log tree commit diff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/hooks/useCleanError.ts2
-rw-r--r--src/lib/media/picker.shared.ts4
-rw-r--r--src/lib/strings/errors.ts2
3 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/hooks/useCleanError.ts b/src/lib/hooks/useCleanError.ts
index dc9284e90..3b7b575bc 100644
--- a/src/lib/hooks/useCleanError.ts
+++ b/src/lib/hooks/useCleanError.ts
@@ -42,7 +42,7 @@ export function useCleanError() {
         }
       }
 
-      if (raw.includes('Bad token scope')) {
+      if (raw.includes('Bad token scope') || raw.includes('Bad token method')) {
         return {
           raw,
           clean: _(
diff --git a/src/lib/media/picker.shared.ts b/src/lib/media/picker.shared.ts
index 6df712e9a..fc89cad33 100644
--- a/src/lib/media/picker.shared.ts
+++ b/src/lib/media/picker.shared.ts
@@ -23,6 +23,8 @@ export async function openPicker(opts?: ImagePickerOptions) {
     selectionLimit: 1,
     ...opts,
     legacy: true,
+    preferredAssetRepresentationMode:
+      UIImagePickerPreferredAssetRepresentationMode.Automatic,
   })
 
   return (response.assets ?? [])
@@ -54,7 +56,7 @@ export async function openUnifiedPicker({
     base64: isWeb,
     selectionLimit: isIOS ? selectionCountRemaining : undefined,
     preferredAssetRepresentationMode:
-      UIImagePickerPreferredAssetRepresentationMode.Current,
+      UIImagePickerPreferredAssetRepresentationMode.Automatic,
     videoMaxDuration: VIDEO_MAX_DURATION_MS / 1000,
   })
 }
diff --git a/src/lib/strings/errors.ts b/src/lib/strings/errors.ts
index 1a010fea6..6c8177e44 100644
--- a/src/lib/strings/errors.ts
+++ b/src/lib/strings/errors.ts
@@ -17,7 +17,7 @@ export function cleanError(str: any): string {
   ) {
     return t`The server appears to be experiencing issues. Please try again in a few moments.`
   }
-  if (str.includes('Bad token scope')) {
+  if (str.includes('Bad token scope') || str.includes('Bad token method')) {
     return t`This feature is not available while using an App Password. Please sign in with your main password.`
   }
   if (str.startsWith('Error: ')) {