From 0f4125dfd5dd4e1efa12c93e6ff1fdb5731bd23f Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 2 Mar 2022 14:27:02 +0000 Subject: [PATCH] Consider polls as message events for rendering redactions (#7944) --- src/components/views/rooms/EventTile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/EventTile.tsx b/src/components/views/rooms/EventTile.tsx index 62784f6d5c..645bbbd3c5 100644 --- a/src/components/views/rooms/EventTile.tsx +++ b/src/components/views/rooms/EventTile.tsx @@ -1664,7 +1664,7 @@ export default class EventTile extends React.Component { // XXX this'll eventually be dynamic based on the fields once we have extensible event types const messageTypes = [EventType.RoomMessage, EventType.Sticker]; function isMessageEvent(ev: MatrixEvent): boolean { - return (messageTypes.includes(ev.getType() as EventType)); + return (messageTypes.includes(ev.getType() as EventType)) || M_POLL_START.matches(ev.getType()); } export function haveTileForEvent(e: MatrixEvent, showHiddenEvents?: boolean): boolean {