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

Commit

Permalink
Flip condition around for finding m.markup
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Nov 24, 2022
1 parent 78d7d47 commit 474eb3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions synapse/push/bulk_push_rule_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,9 @@ def _flatten_dict(
):
# Room supports extensible events: replace `content.body` with the plain text
# representation from `m.markup`, as per MSC1767.
markup = d.get("content").get("org.matrix.msc1767.markup")
if room_version.disposition == RoomDisposition.STABLE:
markup = d.get("content").get("m.markup")
markup = d.get("content").get("m.markup")
if room_version.identifier.startswith("org.matrix.msc1767."):
markup = d.get("content").get("org.matrix.msc1767.markup")
if markup is not None and isinstance(markup, list):
text = ""
for rep in markup:
Expand Down

0 comments on commit 474eb3d

Please sign in to comment.