diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py index e043fd53228b..42afe22910ac 100644 --- a/synapse/handlers/profile.py +++ b/synapse/handlers/profile.py @@ -391,6 +391,10 @@ async def _update_join_states( if not self.hs.is_mine(target_user): return + # T2B: don't update membership events for discord users + if target_user.to_string().startswith("@_discord"): + return + await self.request_ratelimiter.ratelimit(requester) # Do not actually update the room state for shadow-banned users.