Skip to content

Commit f8d67fc

Browse files
committed
add a fix for via as well, which has the same bug
1 parent 94be005 commit f8d67fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

synapse/handlers/room_summary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ def as_json(self, for_client: bool = False) -> JsonDict:
955955

956956
def _has_valid_via(e: EventBase) -> bool:
957957
via = e.content.get("via")
958-
if not via or not isinstance(via, list):
958+
if not via or not isinstance(via, (tuple, list)):
959959
return False
960960
for v in via:
961961
if not isinstance(v, str):

0 commit comments

Comments
 (0)