This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implement MSC2815: allow room moderators to view redacted event content #12427
Implement MSC2815: allow room moderators to view redacted event content #12427
Changes from 3 commits
ffcdac4
fff5752
20b1d3d
e031973
522243b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can there be more than one entry in
redactions
for the same event?Also is there a use case for distinguishing between a
None
andbool
return? I'm in favour of always returning abool
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed there can, there's an index on
redacts
, but I didn't notice that it wasn't a unique index.I'm not sure if it there are cases where some
have_censored
s are false and some are true, but I changed the function to fetch all of them and returnany(values)
(so true if any are true, false if empty/all false)