Skip to content

Commit

Permalink
add a fix for via as well, which has the same bug
Browse files Browse the repository at this point in the history
  • Loading branch information
blackmad committed Jan 6, 2025
1 parent 94be005 commit f8d67fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/handlers/room_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ def as_json(self, for_client: bool = False) -> JsonDict:

def _has_valid_via(e: EventBase) -> bool:
via = e.content.get("via")
if not via or not isinstance(via, list):
if not via or not isinstance(via, (tuple, list)):
return False
for v in via:
if not isinstance(v, str):
Expand Down

0 comments on commit f8d67fc

Please sign in to comment.