mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Use state_key rather than target_user_id
This commit is contained in:
parent
ac21dfff6d
commit
a29d12a18a
@ -114,7 +114,7 @@ class FederationHandler(BaseHandler):
|
|||||||
|
|
||||||
if event.type == RoomMemberEvent.TYPE:
|
if event.type == RoomMemberEvent.TYPE:
|
||||||
if event.membership == Membership.JOIN:
|
if event.membership == Membership.JOIN:
|
||||||
user = self.hs.parse_userid(event.target_user_id)
|
user = self.hs.parse_userid(event.state_key)
|
||||||
self.distributor.fire(
|
self.distributor.fire(
|
||||||
"user_joined_room", user=user, room_id=event.room_id
|
"user_joined_room", user=user, room_id=event.room_id
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user