diff options
author | Will Hunt <will@half-shot.uk> | 2019-08-23 10:28:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-23 10:28:54 +0100 |
commit | c998f250065bd3c0f51a6e6ac3b333ede98ed6a7 (patch) | |
tree | 52be51f1a597360fb57840d05565339c390dfc1d | |
parent | Update changelog (diff) | |
download | synapse-c998f250065bd3c0f51a6e6ac3b333ede98ed6a7.tar.xz |
Apply suggestions from code review
Co-Authored-By: Erik Johnston <erik@matrix.org>
-rw-r--r-- | synapse/handlers/message.py | 4 |
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 |