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
38590a48
Commit
38590a48
authored
6 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Add docstring
parent
82165eeb
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/events/__init__.py
+12
-0
12 additions, 0 deletions
synapse/events/__init__.py
with
12 additions
and
0 deletions
synapse/events/__init__.py
+
12
−
0
View file @
38590a48
...
@@ -64,6 +64,18 @@ class _EventInternalMetadata(object):
...
@@ -64,6 +64,18 @@ class _EventInternalMetadata(object):
return
getattr
(
self
,
"
send_on_behalf_of
"
,
None
)
return
getattr
(
self
,
"
send_on_behalf_of
"
,
None
)
def
need_to_check_redaction
(
self
):
def
need_to_check_redaction
(
self
):
"""
Whether the redaction event needs to be rechecked when fetching
from the database.
Starting in room v3 redaction events are accepted up front, and later
checked to see if the redacter and redactee
'
s domains match.
If the sender of the redaction event is allowed to redact due to auth
rules, then this will always return false.
Returns:
bool
"""
return
getattr
(
self
,
"
recheck_redaction
"
,
False
)
return
getattr
(
self
,
"
recheck_redaction
"
,
False
)
...
...
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