SYN-46: An invite received from fedearation didn't wake up the event stream for the invited user.

pull/10/head
Erik Johnston 2014-09-25 13:01:05 +01:00
parent 9d3246ed12
commit 1ca51c8586
1 changed files with 9 additions and 1 deletions

View File

@ -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: