Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
c998f250
Unverified
Commit
c998f250
authored
5 years ago
by
Will Hunt
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Apply suggestions from code review
Co-Authored-By:
Erik Johnston
<
erik@matrix.org
>
parent
4a2d2c2b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/handlers/message.py
+2
-2
2 additions, 2 deletions
synapse/handlers/message.py
with
2 additions
and
2 deletions
synapse/handlers/message.py
+
2
−
2
View file @
c998f250
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment