Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redact events in the DB on m.room.redaction #280

Merged
merged 2 commits into from
Sep 6, 2023
Merged

Redact events in the DB on m.room.redaction #280

merged 2 commits into from
Sep 6, 2023

Conversation

kegsay
Copy link
Member

@kegsay kegsay commented Aug 31, 2023

Fixes #279

@kegsay kegsay added bug Something isn't working poller labels Aug 31, 2023
@kegsay kegsay requested a review from DMRobertson August 31, 2023 16:07
state/accumulator.go Outdated Show resolved Hide resolved
state/event_table.go Outdated Show resolved Hide resolved
Copy link
Contributor

@DMRobertson DMRobertson left a comment

Choose a reason for hiding this comment

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

Looks good. I was expecting that we would have to do some kind of cache invalidation---redacting in-memory copies of events in the global and user caches. Why haven't we done that---do we not keep raw event JSON in memory?

@kegsay
Copy link
Member Author

kegsay commented Sep 5, 2023

No we don't. There is still a cache invalidation problem for calculated information like the room name, but I will address that in another PR.

@kegsay kegsay merged commit f53246d into main Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working poller
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redact event content when processing m.room.redaction events
2 participants