From 57af0563ba18a070fd92344f382f6844231e3daa Mon Sep 17 00:00:00 2001 From: Rasmus Rendal Date: Thu, 11 May 2023 13:34:18 +0200 Subject: [PATCH] Detect stickers as media --- src/protections/MessageIsMedia.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protections/MessageIsMedia.ts b/src/protections/MessageIsMedia.ts index 64b3728..ac7ea76 100644 --- a/src/protections/MessageIsMedia.ts +++ b/src/protections/MessageIsMedia.ts @@ -38,7 +38,7 @@ export class MessageIsMedia extends Protection { const content = event['content'] || {}; const msgtype = content['msgtype'] || 'm.text'; const formattedBody = content['formatted_body'] || ''; - const isMedia = msgtype === 'm.image' || msgtype === 'm.video' || formattedBody.toLowerCase().includes('