diff options
author | Erik Johnston <erik@matrix.org> | 2014-09-25 13:01:05 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-09-25 13:01:05 +0100 |
commit | 1ca51c8586a4e96fe8d0fdfe85fc668933d87578 (patch) | |
tree | ba384c2cb0b8e40d2f83eaf8bc850d6231a81d05 /synapse/handlers | |
parent | Fixed SYWEB-36: use getUserDisplayName for disambiguating display name in mem... (diff) | |
download | synapse-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')
-rw-r--r-- | synapse/handlers/federation.py | 10 |
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: |