Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Show message redactions as black event tiles#739

Merged
dbkr merged 7 commits into
developfrom
luke/visible-redactions
Mar 9, 2017
Merged

Show message redactions as black event tiles#739
dbkr merged 7 commits into
developfrom
luke/visible-redactions

Conversation

@lukebarnard1
Copy link
Copy Markdown
Contributor

@lukebarnard1 lukebarnard1 commented Mar 3, 2017

module.exports.haveTileForEvent = function(e) {
if (e.isRedacted()) return false;
// Only messages have a tile (black-rectangle) if redacted
if (e.isRedacted() && e.getType() !== 'm.room.message') return false;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should probably display tiles for all redacted events. Presumably this won't really require anything extra, as long as we use the same style for now?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Conclusion is to do a separate PR for other event types (where we probably just skip rendering the specific tile altogether): https://matrix.to/#/!DdJkzRliezrwpNebLk:matrix.org/$148905194216eubJF:ldbco.de

@dbkr dbkr assigned lukebarnard1 and unassigned dbkr Mar 8, 2017
@dbkr dbkr merged commit 676c5c2 into develop Mar 9, 2017
martindale pushed a commit to FabricLabs/matrix-react-sdk that referenced this pull request Dec 8, 2018
add new examples, to be expanded into a post
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants