summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorHalf-Shot <will@half-shot.uk>2019-08-23 09:56:31 +0100
committerHalf-Shot <will@half-shot.uk>2019-08-23 09:56:31 +0100
commit9ba32f6573a47368c1ac63ec769c20f73bcc2cc5 (patch)
treee7651ce390a70d147825157fd9bdd71747ea848b /synapse
parentMerge branch 'hs/bot-user-type' into hs/exempt-support-users-from-consent (diff)
downloadsynapse-9ba32f6573a47368c1ac63ec769c20f73bcc2cc5.tar.xz
Exempt bot users
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index 97a89fe882..c656cffc07 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -469,7 +469,7 @@ class EventCreationHandler(object):
 
         u = yield self.store.get_user_by_id(user_id)
         assert u is not None
-        if u["user_type"] == UserTypes.SUPPORT:
+        if u["user_type"] == UserTypes.SUPPORT or u["user_type"] == UserTypes.BOT:
             # support users are not required to consent
             return
         if u["appservice_id"] is not None: