summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-03-16 00:27:59 +0000
committerErik Johnston <erik@matrix.org>2015-03-16 00:27:59 +0000
commit758d114cbce3b71f4253bf49669ec366185bfde9 (patch)
treece20f7957f67e4c041551deb7e0c2e0d73d02bf2 /synapse/handlers
parentMake context.auth_events grap auth events from current state. Otherwise auth ... (diff)
downloadsynapse-758d114cbce3b71f4253bf49669ec366185bfde9.tar.xz
Send all membership events to the remote homeserver
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/_base.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/synapse/handlers/_base.py b/synapse/handlers/_base.py
index 1773fa20aa..349a52b85c 100644
--- a/synapse/handlers/_base.py
+++ b/synapse/handlers/_base.py
@@ -133,10 +133,9 @@ class BaseHandler(object):
         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