mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 10:34:40 +03:00
Treat messages as text
This commit is contained in:
@ -2915,7 +2915,7 @@ const newMsgView = (miv, msglistView, listMailboxes, possibleLabels, messageLoad
|
||||
'image/apng',
|
||||
'image/svg+xml',
|
||||
];
|
||||
const isText = (a) => a.Part.MediaType.toLowerCase() === 'text';
|
||||
const isText = (a) => ['text', 'message'].includes(a.Part.MediaType.toLowerCase());
|
||||
const isImage = (a) => imageTypes.includes((a.Part.MediaType + '/' + a.Part.MediaSubType).toLowerCase());
|
||||
const isPDF = (a) => (a.Part.MediaType + '/' + a.Part.MediaSubType).toLowerCase() === 'application/pdf';
|
||||
const isViewable = (a) => isText(a) || isImage(a) || isPDF(a);
|
||||
|
Reference in New Issue
Block a user