diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2019-03-12 14:42:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-12 14:42:53 +0000 |
commit | d42c81d724477803e6b0db6017281a3394a9cee5 (patch) | |
tree | fad76481be9834edbd9bc7b5de5496460b6877db /synapse/handlers/room_member.py | |
parent | Clarify what registration_shared_secret allows for (#2885) (#4844) (diff) | |
download | synapse-d42c81d724477803e6b0db6017281a3394a9cee5.tar.xz |
Transfer local user's push rules on room upgrade (#4838)
Transfer push rules (notifications) on room upgrade
Diffstat (limited to 'synapse/handlers/room_member.py')
-rw-r--r-- | synapse/handlers/room_member.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py index 190ea2c7b1..aead9e4608 100644 --- a/synapse/handlers/room_member.py +++ b/synapse/handlers/room_member.py @@ -232,6 +232,10 @@ class RoomMemberHandler(object): self.copy_room_tags_and_direct_to_room( predecessor["room_id"], room_id, user_id, ) + # Move over old push rules + self.store.move_push_rules_from_room_to_room_for_user( + predecessor["room_id"], room_id, user_id, + ) elif event.membership == Membership.LEAVE: if prev_member_event_id: prev_member_event = yield self.store.get_event(prev_member_event_id) |