mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Don't try to show redacted messages
Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
aff02885de
commit
0a3bc1c667
1 changed files with 1 additions and 0 deletions
|
@ -145,6 +145,7 @@ module.exports = React.createClass({
|
|||
// Don't show non-messages. Technically users can pin state/custom events, but we won't
|
||||
// support those events.
|
||||
if (event.getType() !== "m.room.message") return '';
|
||||
if (event.isRedacted()) return ''; // don't show redacted pins
|
||||
return (<PinnedEventTile key={event.getId()} mxRoom={this.props.room} mxEvent={event} onUnpinned={this._updatePinnedMessages} />);
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue