fix reply fallback stripping regex

This commit is contained in:
git-bruh 2021-07-04 12:39:05 +05:30
parent d864b0cc44
commit 4db1b48c71
No known key found for this signature in database
GPG key ID: E1475C50075ADCE6

View file

@ -252,7 +252,7 @@ class MatrixClient(AppService):
event.body = tmp event.body = tmp
event.formatted_body = ( event.formatted_body = (
re.sub(".*</mx-reply>", "", event.formatted_body) re.sub("<mx-reply>.*</mx-reply>", "", event.formatted_body)
if event.formatted_body if event.formatted_body
else event.body else event.body
) )