From b0fab3a5d78f0a3945f725c1bf000fa149f92a32 Mon Sep 17 00:00:00 2001 From: fromaline Date: Fri, 30 Sep 2022 16:59:45 +0400 Subject: [PATCH] [163] allow downloading audio via context menu restore option in the context menu for downloading audio files --- src/components/chat/contextMenu.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/chat/contextMenu.ts b/src/components/chat/contextMenu.ts index 423ad29a1..7e9f2faa9 100644 --- a/src/components/chat/contextMenu.ts +++ b/src/components/chat/contextMenu.ts @@ -447,7 +447,7 @@ export default class ChatContextMenu { } else { const doc: MyDocument = ((this.message as Message.message).media as MessageMedia.messageMediaDocument)?.document as any; if(!doc) return false; - isGoodType = doc.type && (['gif', 'video'/* , 'sticker' */] as MyDocument['type'][]).includes(doc.type) + isGoodType = doc.type && (['gif', 'video', 'audio'/* , 'sticker' */] as MyDocument['type'][]).includes(doc.type) } let hasTarget = !!IS_TOUCH_SUPPORTED;