Skip to content
Snippets Groups Projects
Commit 33d62c2c authored by Paul "LeoNerd" Evans's avatar Paul "LeoNerd" Evans
Browse files

Remember to reflect membership LEAVE events to the leaving member so they know it happened

parent 286e90e5
No related branches found
No related tags found
Loading
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment