Show redacted messages using the standard Message widget#662
Merged
kevinaboos merged 4 commits intoproject-robius:mainfrom Jan 16, 2026
Merged
Conversation
instead of the old approach of making it a tiny SmallStateEvent. This is more in line with the Matrix spec and the behavior of other clients. It also allows us to use richer formatting for the "message deleted" text.
…essage) Also redesign the user_profile_cache API to make it easier to use and more efficient, and also to allow disambiguating between whether a user's information came from the per-room data or profile/account data.
Just wait for the `TimelineDetails` to be properly fetched, which is better and way more efficient than us duplicately querying the room member list repeatedly / in the interim.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
instead of the old approach of making it a tiny SmallStateEvent.
This is more in line with the Matrix spec and the behavior of other clients. It also allows us to use richer formatting for the "message deleted" text.
Fetch the displayable name of the redactor (the one who deleted the message) and use it in the
Messagewidget for a redacted message, but because it's expensive we do not use it for simple text previews of a redacted message.This PR also redesigns the
user_profile_cacheAPI to make it easier to use and also more efficient (less cloning), and also to allow disambiguating between whether a user's information came from the per-room data or profile/account data.