Fix formatted body for replies

This commit is contained in:
git-bruh 2021-07-19 21:27:37 +05:30 committed by GitHub
parent 416bfbe261
commit f83638aef0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -270,6 +270,7 @@ class MatrixClient(AppService):
f"> <{event.sender}> {event.body}\n{content['body']}"
),
"m.relates_to": {"m.in_reply_to": {"event_id": event.id}},
"format": "org.matrix.custom.html",
"formatted_body": f"""<mx-reply><blockquote>\
<a href="https://matrix.to/#/{event.room_id}/{event.id}">\
In reply to</a><a href="https://matrix.to/#/{event.sender}">\