Skip to content
Snippets Groups Projects
Verified Commit 953cd6dd authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Add maubot m.relates_to for pongs

parent 17b0656c
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,12 @@ class MatrixBot
format: 'org.matrix.custom.html',
formatted_body: format(html, formatdata),
msgtype: 'm.notice',
'm.relates_to': {
event_id: formatdata[:event],
from: from_id.homeserver,
ms: milliseconds,
rel_type: 'xyz.maubot.pong'
},
pong: {
from: from_id.homeserver,
ms: milliseconds,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment