Exempt bot users

This commit is contained in:
Half-Shot 2019-08-23 09:56:31 +01:00
parent ffa5b757c7
commit 9ba32f6573
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ class EventCreationHandler(object):
u = yield self.store.get_user_by_id(user_id) u = yield self.store.get_user_by_id(user_id)
assert u is not None 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 # support users are not required to consent
return return
if u["appservice_id"] is not None: if u["appservice_id"] is not None: