diff --git a/matrix/plugin.json b/matrix/plugin.json index 6d7de9f..1548f9e 100644 --- a/matrix/plugin.json +++ b/matrix/plugin.json @@ -3,7 +3,7 @@ "name": "matrix", "description": "Matrix.org Service for Squeebot 3", "tags": ["service", "matrix"], - "version": "1.3.3", + "version": "1.3.4", "dependencies": ["control?"], "npmDependencies": ["matrix-bot-sdk@0.6.6"] } diff --git a/matrix/plugin.ts b/matrix/plugin.ts index 930ced0..b3c3a77 100644 --- a/matrix/plugin.ts +++ b/matrix/plugin.ts @@ -165,8 +165,11 @@ class MatrixProtocol extends Protocol { return; } - // Don't handle non-text events - if (!['m.text', 'm.emote'].includes(event.content.msgtype)) { + // Don't handle non-text events and quote replies + if ( + !['m.text', 'm.emote'].includes(event.content.msgtype) || + event.content['m.relates_to']?.['m.in_reply_to'] + ) { return; } const msg = event.content.body; diff --git a/squeebot.repo.json b/squeebot.repo.json index 25062e9..a00d744 100644 --- a/squeebot.repo.json +++ b/squeebot.repo.json @@ -3,7 +3,7 @@ "plugins": [ { "name": "matrix", - "version": "1.3.3" + "version": "1.3.4" } ], "typescript": true