Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit bdb8618

Browse files
committed
Flip condition around for finding m.markup
1 parent b560b0d commit bdb8618

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

synapse/push/bulk_push_rule_evaluator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,9 @@ def _flatten_dict(
450450
):
451451
# Room supports extensible events: replace `content.body` with the plain text
452452
# representation from `m.markup`, as per MSC1767.
453-
markup = d.get("content").get("org.matrix.msc1767.markup")
454-
if room_version.disposition == RoomDisposition.STABLE:
455-
markup = d.get("content").get("m.markup")
453+
markup = d.get("content").get("m.markup")
454+
if room_version.identifier.startswith("org.matrix.msc1767."):
455+
markup = d.get("content").get("org.matrix.msc1767.markup")
456456
if markup is not None and isinstance(markup, list):
457457
text = ""
458458
for rep in markup:

0 commit comments

Comments
 (0)