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:
commit
b206e5104f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue