Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Consider polls as message events for rendering redactions #7944

Merged
merged 1 commit into from
Mar 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/views/rooms/EventTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down