Skip to content

Commit 9d154ec

Browse files
committed
Skip updating member events for discord users
1 parent 35646dd commit 9d154ec

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
@@ -382,6 +382,10 @@ async def _update_join_states(
382382
if not self.hs.is_mine(target_user):
383383
return
384384

385+
# T2B: don't update membership events for discord users
386+
if target_user.to_string().startswith("@_discord"):
387+
return
388+
385389
await self.request_ratelimiter.ratelimit(requester)
386390

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

0 commit comments

Comments
 (0)