Skip to content

Commit 0a3bc1c

Browse files
committed
Don't try to show redacted messages
Signed-off-by: Travis Ralston <travpc@gmail.com>
1 parent aff0288 commit 0a3bc1c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/components/views/rooms/PinnedEventsPanel.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ module.exports = React.createClass({
145145
// Don't show non-messages. Technically users can pin state/custom events, but we won't
146146
// support those events.
147147
if (event.getType() !== "m.room.message") return '';
148+
if (event.isRedacted()) return ''; // don't show redacted pins
148149
return (<PinnedEventTile key={event.getId()} mxRoom={this.props.room} mxEvent={event} onUnpinned={this._updatePinnedMessages} />);
149150
});
150151
},

0 commit comments

Comments
 (0)