Don't try to show redacted messages
Signed-off-by: Travis Ralston <travpc@gmail.com>pull/5142/head
parent
aff02885de
commit
0a3bc1c667
|
@ -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 New Issue