summary refs log tree commit diff
path: root/synapse/handlers/message.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-10-07 11:28:05 +0100
committerRichard van der Hoff <richard@matrix.org>2020-10-07 11:28:05 +0100
commit903fcd2d3561813b80706b07e1dcc19eb47ec260 (patch)
tree564463b08763d177258cda00eb3c40ddab7f9448 /synapse/handlers/message.py
parentchangelog (diff)
downloadsynapse-903fcd2d3561813b80706b07e1dcc19eb47ec260.tar.xz
update wording
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r--synapse/handlers/message.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index 6d136930bf..3e9a22e8f3 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -835,8 +835,9 @@ class EventCreationHandler:
             ShadowBanError if the requester has been shadow-banned.
         """
 
-        # we don't apply shadow-banning to membership events, so that the user
-        # can come and go as they want.
+        # we don't apply shadow-banning to membership events here. Invites are blocked
+        # higher up the stack, and we allow shadow-banned users to send join and leave
+        # events as normal.
         if (
             event.type != EventTypes.Member
             and not ignore_shadow_ban