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

This commit is contained in:
Paul "LeoNerd" Evans 2014-08-15 11:40:58 +01:00
parent 286e90e58f
commit 33d62c2c66
1 changed files with 4 additions and 0 deletions

View File

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