From 0a3bc1c6675e4cd9e1d9f58d6cd4516691ffc190 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 29 Sep 2017 11:21:44 -0600 Subject: [PATCH] Don't try to show redacted messages Signed-off-by: Travis Ralston --- src/components/views/rooms/PinnedEventsPanel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/views/rooms/PinnedEventsPanel.js b/src/components/views/rooms/PinnedEventsPanel.js index 7454e1044..d86d4b58d 100644 --- a/src/components/views/rooms/PinnedEventsPanel.js +++ b/src/components/views/rooms/PinnedEventsPanel.js @@ -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 (); }); },