Hide long message attachments in quotes

This commit is contained in:
Evan Hahn
2021-03-25 13:36:50 -05:00
committed by GitHub
parent 6f404648d7
commit afe135df0c
7 changed files with 76 additions and 42 deletions
+2
View File
@@ -29,3 +29,5 @@ export const isVideo = (value: string): value is MIMEType =>
// recognize them as file attachments.
export const isAudio = (value: string): value is MIMEType =>
Boolean(value) && value.startsWith('audio/') && !value.endsWith('aiff');
export const isLongMessage = (value: unknown): value is MIMEType =>
value === LONG_MESSAGE;