0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 00:33:50 +01:00

Apply suggestions from code review

Co-Authored-By: Erik Johnston <erik@matrix.org>
This commit is contained in:
Will Hunt 2019-08-23 10:28:54 +01:00 committed by GitHub
parent 4a2d2c2b6f
commit c998f25006
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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