don't send empty formatted body of parent event in replies
This commit is contained in:
parent
0ac5faf357
commit
416bfbe261
1 changed files with 3 additions and 1 deletions
|
@ -273,7 +273,9 @@ class MatrixClient(AppService):
|
||||||
"formatted_body": f"""<mx-reply><blockquote>\
|
"formatted_body": f"""<mx-reply><blockquote>\
|
||||||
<a href="https://matrix.to/#/{event.room_id}/{event.id}">\
|
<a href="https://matrix.to/#/{event.room_id}/{event.id}">\
|
||||||
In reply to</a><a href="https://matrix.to/#/{event.sender}">\
|
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'])}""",
|
{content.get("formatted_body", content['body'])}""",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue