summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--changelog.d/5576.bugfix1
-rw-r--r--synapse/handlers/room_member.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/changelog.d/5576.bugfix b/changelog.d/5576.bugfix
new file mode 100644
index 0000000000..c1ba5581f2
--- /dev/null
+++ b/changelog.d/5576.bugfix
@@ -0,0 +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.
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py
index 4d6e883802..66b05b4732 100644
--- a/synapse/handlers/room_member.py
+++ b/synapse/handlers/room_member.py
@@ -823,6 +823,7 @@ class RoomMemberHandler(object):
                 "sender": user.to_string(),
                 "state_key": token,
             },
+            ratelimit=False,
             txn_id=txn_id,
         )