Ignore quotes
This commit is contained in:
parent
a517031290
commit
f2e46d3208
@ -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"]
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -3,7 +3,7 @@
|
||||
"plugins": [
|
||||
{
|
||||
"name": "matrix",
|
||||
"version": "1.3.3"
|
||||
"version": "1.3.4"
|
||||
}
|
||||
],
|
||||
"typescript": true
|
||||
|
Loading…
Reference in New Issue
Block a user