summary refs log tree commit diff
path: root/synapse/handlers/room_member.py
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2019-03-12 14:42:53 +0000
committerGitHub <noreply@github.com>2019-03-12 14:42:53 +0000
commitd42c81d724477803e6b0db6017281a3394a9cee5 (patch)
treefad76481be9834edbd9bc7b5de5496460b6877db /synapse/handlers/room_member.py
parentClarify what registration_shared_secret allows for (#2885) (#4844) (diff)
downloadsynapse-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.py4
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)