diff --git a/telematrix/__init__.py b/telematrix/__init__.py index 8d3992e..5b069a9 100644 --- a/telematrix/__init__.py +++ b/telematrix/__init__.py @@ -97,7 +97,7 @@ def format_matrix_msg(form, content): :return: The formatted string. """ if 'format' in content and content['format'] == 'org.matrix.custom.html': - sanitized = re.sub("(.+?)".format(MATRIX_HOST_BARE), "\\2", content['formatted_body']) + sanitized = re.sub("(.+?) \(Telegram\)".format(MATRIX_HOST_BARE), "\\2", content['formatted_body']) sanitized = sanitize_html(sanitized) return html.escape(form).format(sanitized), 'HTML' else: