From 26198f479451cde7ba00ca71a0a91463a2e323f3 Mon Sep 17 00:00:00 2001 From: Roland Osborne Date: Fri, 14 Mar 2025 14:52:38 -0700 Subject: [PATCH] fixing share sheet share of gif --- app/client/mobile/src/conversation/useConversation.hook.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/client/mobile/src/conversation/useConversation.hook.ts b/app/client/mobile/src/conversation/useConversation.hook.ts index 5d9c472a..322fbe77 100644 --- a/app/client/mobile/src/conversation/useConversation.hook.ts +++ b/app/client/mobile/src/conversation/useConversation.hook.ts @@ -107,11 +107,11 @@ export function useConversation() { if (focused.cardId == sharing.cardId && focused.channelId == sharing.channelId) { const { mimeType, filePath } = sharing; const ext = mimeType.toLowerCase(); - if (ext == '.jpg' || ext == 'image/jpeg' || ext == '.png' || ext == 'image/png' || ext == '.webp' || ext == 'image/webp' || ext == '.bmp' || ext == 'image/bmp') { + if (ext == '.jpg' || ext == 'image/jpeg' || ext == '.png' || ext == 'image/png' || ext == '.webp' || ext == 'image/webp' || ext == '.bmp' || ext == 'image/bmp' || ext == '.gif' || ext == 'image/gif') { actions.addImage(filePath, mimeType, IMAGE_SCALE_SIZE); } else if (ext == '.mp4' || ext == 'videp/mp4' || ext == '.mov' || ext == 'video/mov') { actions.addVideo(filePath, mimeType); - } else if (ext == '.mp3' || ext == 'audio/mp3' || ext == '.aac' || 'audio/aac') { + } else if (ext == '.mp3' || ext == 'audio/mp3' || ext == '.aac' || ext == 'audio/aac') { actions.addAudio(filePath, mimeType); } else { actions.addBinary(filePath, filePath.split('/').pop());