Skip to content

Commit

Permalink
Send all membership events to the remote homeserver
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Mar 16, 2015
1 parent ea8590c commit 758d114
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions synapse/handlers/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,9 @@ def handle_new_client_event(self, event, context, extra_destinations=[],
for k, s in context.current_state.items():
try:
if k[0] == EventTypes.Member:
if s.content["membership"] == Membership.JOIN:
destinations.add(
UserID.from_string(s.state_key).domain
)
destinations.add(
UserID.from_string(s.state_key).domain
)
except SynapseError:
logger.warn(
"Failed to get destination from event %s", s.event_id
Expand Down

0 comments on commit 758d114

Please sign in to comment.