summary refs log tree commit diff
path: root/synapse/handlers/federation.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-09-25 13:01:05 +0100
committerErik Johnston <erik@matrix.org>2014-09-25 13:01:05 +0100
commit1ca51c8586a4e96fe8d0fdfe85fc668933d87578 (patch)
treeba384c2cb0b8e40d2f83eaf8bc850d6231a81d05 /synapse/handlers/federation.py
parentFixed SYWEB-36: use getUserDisplayName for disambiguating display name in mem... (diff)
downloadsynapse-1ca51c8586a4e96fe8d0fdfe85fc668933d87578.tar.xz
SYN-46: An invite received from fedearation didn't wake up the event stream for the invited user.
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r--synapse/handlers/federation.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index 001c6c110c..f52591d2a3 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -169,7 +169,15 @@ class FederationHandler(BaseHandler):
                     )
 
             if not backfilled:
-                yield self.notifier.on_new_room_event(event)
+                extra_users = []
+                if event.type == RoomMemberEvent.TYPE:
+                    target_user_id = event.state_key
+                    target_user = self.hs.parse_userid(target_user_id)
+                    extra_users.append(target_user)
+
+                yield self.notifier.on_new_room_event(
+                    event, extra_users=extra_users
+                )
 
         if event.type == RoomMemberEvent.TYPE:
             if event.membership == Membership.JOIN: