diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-08-15 11:40:58 +0100 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-08-15 11:40:58 +0100 |
commit | 33d62c2c6674cf19f5261817bff81cd5209408bd (patch) | |
tree | 440f7415587c372fcd54a88581f94bd92df57ea6 /synapse/api | |
parent | Updated README about -w in all the places. (diff) | |
download | synapse-33d62c2c6674cf19f5261817bff81cd5209408bd.tar.xz |
Remember to reflect membership LEAVE events to the leaving member so they know it happened
Diffstat (limited to '')
-rw-r--r-- | synapse/api/notifier.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/api/notifier.py b/synapse/api/notifier.py index 105a11401b..65b5a4ebb3 100644 --- a/synapse/api/notifier.py +++ b/synapse/api/notifier.py @@ -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: |