mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-15 17:51:10 +00:00
Remember to reflect membership LEAVE events to the leaving member so they know it happened
This commit is contained in:
parent
286e90e58f
commit
33d62c2c66
1 changed files with 4 additions and 0 deletions
|
@ -56,6 +56,10 @@ class Notifier(object):
|
|||
if (event.type == RoomMemberEvent.TYPE and
|
||||
event.content["membership"] == Membership.INVITE):
|
||||
member_list.append(event.target_user_id)
|
||||
# similarly, LEAVEs must be sent to the person leaving
|
||||
if (event.type == RoomMemberEvent.TYPE and
|
||||
event.content["membership"] == Membership.LEAVE):
|
||||
member_list.append(event.target_user_id)
|
||||
|
||||
for user_id in member_list:
|
||||
if user_id in self.stored_event_listeners:
|
||||
|
|
Loading…
Reference in a new issue