1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
Description: do not use slidge_style_parser (not yet in Debian)
Author: Martin <debacle@debian.org>
Origin: vendor
Bug-Debian: https://bugs.debian.org/1057868
Last-Update: 2025-01-22
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/matridge/util.py
+++ b/matridge/util.py
@@ -7,7 +7,6 @@
import nio
from slidge.core.mixins import MessageMixin
from slidge.util.types import LegacyAttachment, Mention, MessageReference
-from slidge_style_parser import format_for_matrix
from slixmpp.exceptions import XMPPError
from . import config
@@ -213,9 +212,7 @@
else:
content = {"msgtype": "m.text", "body": text}
if config.PARSE_MESSAGE_STYLING:
- formatted_body = format_for_matrix(
- text, [(m.contact.legacy_id, m.start, m.end) for m in mentions or []]
- )
+ formatted_body = text
content["formatted_body"] = formatted_body
content["format"] = "org.matrix.custom.html"
if mentions:
|