Skip to content

Commit f560c22

Browse files
committed
Skip updating member events for discord users
1 parent 505c5df commit f560c22

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

synapse/handlers/profile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,10 @@ async def _update_join_states(
398398
if not self.hs.is_mine(target_user):
399399
return
400400

401+
# T2B: don't update membership events for discord users
402+
if target_user.to_string().startswith("@_discord"):
403+
return
404+
401405
await self.request_ratelimiter.ratelimit(requester)
402406

403407
# Do not actually update the room state for shadow-banned users.

0 commit comments

Comments
 (0)