summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorWill Hunt <will@half-shot.uk>2019-08-23 10:28:54 +0100
committerGitHub <noreply@github.com>2019-08-23 10:28:54 +0100
commitc998f250065bd3c0f51a6e6ac3b333ede98ed6a7 (patch)
tree52be51f1a597360fb57840d05565339c390dfc1d /synapse
parentUpdate changelog (diff)
downloadsynapse-c998f250065bd3c0f51a6e6ac3b333ede98ed6a7.tar.xz
Apply suggestions from code review
Co-Authored-By: Erik Johnston <erik@matrix.org>
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/message.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index c656cffc07..111f7c7e2f 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -469,8 +469,8 @@ class EventCreationHandler(object):
 
         u = yield self.store.get_user_by_id(user_id)
         assert u is not None
-        if u["user_type"] == UserTypes.SUPPORT or u["user_type"] == UserTypes.BOT:
-            # support users are not required to consent
+        if u["user_type"] in (UserTypes.SUPPORT, UserTypes.BOT):
+            # support and bot users are not required to consent
             return
         if u["appservice_id"] is not None:
             # users registered by an appservice are exempt