diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-08-26 08:49:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-26 08:49:01 -0400 |
commit | 2e6c90ff847b2d79ae372933e431d3a7ebaf5381 (patch) | |
tree | a45218c41a5df1f60f86b57eb99d3d6ef6d210bf /synapse/handlers/room_member.py | |
parent | Make SlavedIdTracker.advance have same interface as MultiWriterIDGenerator (#... (diff) | |
download | synapse-2e6c90ff847b2d79ae372933e431d3a7ebaf5381.tar.xz |
Do not propagate profile changes of shadow-banned users into rooms. (#8157)
Diffstat (limited to 'synapse/handlers/room_member.py')
-rw-r--r-- | synapse/handlers/room_member.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py index 804463b1c0..cae4d013b8 100644 --- a/synapse/handlers/room_member.py +++ b/synapse/handlers/room_member.py @@ -380,7 +380,7 @@ class RoomMemberHandler(object): # later on. content = dict(content) - if not self.allow_per_room_profiles: + if not self.allow_per_room_profiles or requester.shadow_banned: # Strip profile data, knowing that new profile data will be added to the # event's content in event_creation_handler.create_event() using the target's # global profile. |