don't send empty formatted body of parent event in replies

This commit is contained in:
git-bruh 2021-07-19 20:03:04 +05:30
parent 0ac5faf357
commit 416bfbe261
No known key found for this signature in database
GPG key ID: E1475C50075ADCE6

View file

@ -273,7 +273,9 @@ class MatrixClient(AppService):
"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}">\
{event.sender}</a><br>{event.formatted_body}</blockquote></mx-reply>\
{event.sender}</a><br>\
{event.formatted_body if event.formatted_body else event.body}\
</blockquote></mx-reply>\
{content.get("formatted_body", content['body'])}""",
}