summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-03-16 15:12:47 +0000
committerErik Johnston <erik@matrix.org>2015-03-16 15:12:47 +0000
commit857810d2dd5e3ca6fe39b3bec7d76d75cb0c94ec (patch)
treeb1905f236bd7afb8d9c5867f878a45f0e7a9cd80
parentRemove concept of context.auth_events, instead use context.current_state (diff)
downloadsynapse-857810d2dd5e3ca6fe39b3bec7d76d75cb0c94ec.tar.xz
Revert incorrect changes to where we send events
-rw-r--r--synapse/handlers/_base.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/synapse/handlers/_base.py b/synapse/handlers/_base.py
index 261335b27c..2a9d9ec137 100644
--- a/synapse/handlers/_base.py
+++ b/synapse/handlers/_base.py
@@ -133,9 +133,10 @@ class BaseHandler(object):
         for k, s in context.current_state.items():
             try:
                 if k[0] == EventTypes.Member:
-                    destinations.add(
-                        UserID.from_string(s.state_key).domain
-                    )
+                    if s.content["membership"] == Membership.JOIN:
+                        destinations.add(
+                            UserID.from_string(s.state_key).domain
+                        )
             except SynapseError:
                 logger.warn(
                     "Failed to get destination from event %s", s.event_id