Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 78b737f

Browse files
authored
Merge pull request #5577 from matrix-org/babolivier/3pid-invite-ratelimit
Port #5576 to dinsic
2 parents ee0ee97 + a7a8bbf commit 78b737f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

changelog.d/5576.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a bug that would cause invited users to receive several emails for a single 3PID invite in case the inviter is rate limited.

synapse/handlers/room_member.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,7 @@ def _make_and_store_3pid_invite(
935935
"sender": user.to_string(),
936936
"state_key": token,
937937
},
938+
ratelimit=False,
938939
txn_id=txn_id,
939940
)
940941

0 commit comments

Comments
 (0)