Merge pull request #165 from fromaline:bug/163-music-files-cannot-be-downloaded

restore option in the context menu for downloading audio files
This commit is contained in:
Eduard Kuzmenko 2022-10-09 00:54:38 +04:00 committed by GitHub
commit b206e5104f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;