Skip to content

Commit c3e6500

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synapse/handlers/room_summary.py

+1-1
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, (list, tuple)):
959959
return False
960960
for v in via:
961961
if not isinstance(v, str):

0 commit comments

Comments
 (0)