[163] allow downloading audio via context menu
restore option in the context menu for downloading audio files
This commit is contained in:
parent
13d9e952ba
commit
b0fab3a5d7
|
@ -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