mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04: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
@ -56,6 +56,10 @@ class Notifier(object):
|
|||||||
if (event.type == RoomMemberEvent.TYPE and
|
if (event.type == RoomMemberEvent.TYPE and
|
||||||
event.content["membership"] == Membership.INVITE):
|
event.content["membership"] == Membership.INVITE):
|
||||||
member_list.append(event.target_user_id)
|
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:
|
for user_id in member_list:
|
||||||
if user_id in self.stored_event_listeners:
|
if user_id in self.stored_event_listeners:
|
||||||
|
Loading…
Reference in New Issue
Block a user