Skip to content

Conversation

orangecms
Copy link
Contributor

This implements passing a reason for the redaction as per https://matrix.org/docs/spec/client_server/r0.6.1#id254

Disclaimer: @fridtjof, @Mythozz and @badgateway666 made me do this :p

@turt2live turt2live added the Z-Community-PR Issue is solved by a community member's PR label Sep 9, 2020
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking on the fix! We should find a way to get this into the existing function to avoid building out infinite problems. My suggestion would be to support multiple call signatures by switching on the callback argument's type.

We also need sign-off on these changes.

@orangecms
Copy link
Contributor Author

Alright, that we can do :) Thanks!

@orangecms orangecms changed the title Add method redactEventWithReason extend method redactEvent with reason Sep 9, 2020
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking a look at this, and apologies for the delay in review - it's been a bit busy over here

@orangecms orangecms force-pushed the develop branch 3 times, most recently from 1142c77 to aad7484 Compare September 21, 2020 19:49
Signed-off-by: Daniel Maslowski <info@orangecms.org>
@turt2live turt2live self-requested a review September 28, 2020 16:07
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the long review on this - it looks good to me. Thanks for taking it on!

@turt2live turt2live merged commit fa9921e into matrix-org:develop Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-Community-PR Issue is solved by a community member's PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants