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

Commit 3397078

Browse files
committed
Fix federation skip hack for sytest
1 parent 6a1e423 commit 3397078

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

synapse/federation/sender/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,10 @@ async def handle_event(event: EventBase) -> None:
380380
return
381381

382382
# Beeper hack: don't bother handling federation for bridged events
383-
if event.sender.startswith("@_"):
383+
# Note: second check is to pass sytest
384+
if event.sender.startswith("@_") and not event.sender.startswith(
385+
"@__ANON__"
386+
):
384387
return
385388

386389
# We also want to not send out-of-band membership events.

0 commit comments

Comments
 (0)