diff --git a/mautrix_telegram/formatter/from_matrix.py b/mautrix_telegram/formatter/from_matrix.py index d005c05e..b5b3576f 100644 --- a/mautrix_telegram/formatter/from_matrix.py +++ b/mautrix_telegram/formatter/from_matrix.py @@ -244,7 +244,7 @@ def matrix_reply_to_telegram(content, tg_space, room_id=None): event_id = reply["event_id"] try: - if content["format"] == "org.custom.matrix.html": + if content["format"] == "org.matrix.custom.html": content["formatted_body"] = trim_reply_fallback_html(content["formatted_body"]) except KeyError: pass