Commit e9b4cd47 authored by Jason Volk's avatar Jason Volk Committed by Tulir Asokan

Add m.relates_to support in pong response content.

parent 4d3f4f15
......@@ -52,6 +52,12 @@ class EchoBot(Plugin):
"from": evt.sender.split(":", 1)[1],
"ping": evt.event_id,
}
content["m.relates_to"] = {
"rel_type": "pong",
"event_id": evt.event_id,
"from": evt.sender.split(":", 1)[1],
"ms": diff,
}
await evt.respond(content)
@command.new("echo", help="Repeat a message")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment