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('