From 416bfbe2611e7733be0199b1a1cdafa1387b7dbd Mon Sep 17 00:00:00 2001 From: git-bruh Date: Mon, 19 Jul 2021 20:03:04 +0530 Subject: [PATCH] don't send empty formatted body of parent event in replies --- appservice/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appservice/main.py b/appservice/main.py index dd455b3..de5ac85 100644 --- a/appservice/main.py +++ b/appservice/main.py @@ -273,7 +273,9 @@ class MatrixClient(AppService): "formatted_body": f"""
\ \ In reply to\ -{event.sender}
{event.formatted_body}
\ +{event.sender}
\ +{event.formatted_body if event.formatted_body else event.body}\ +\ {content.get("formatted_body", content['body'])}""", }