Consider polls as message events for rendering redactions (#7944)
This commit is contained in:
parent
71ddd9d78d
commit
0f4125dfd5
1 changed files with 1 additions and 1 deletions
|
@ -1664,7 +1664,7 @@ export default class EventTile extends React.Component<IProps, IState> {
|
|||
// 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 {
|
||||
|
|
Loading…
Reference in a new issue