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

Commit

Permalink
Merge pull request #9870 from matrix-org/johannes/poll-start-sent-rec…
Browse files Browse the repository at this point in the history
…eipt

Enable sent receipt for poll start events (PSG-962)
  • Loading branch information
andybalaam authored Jan 6, 2023
2 parents 6ae3099 + b0e15a4 commit ff34fc7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/views/rooms/EventTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,12 @@ export class UnwrappedEventTile extends React.Component<EventTileProps, IState>
// events and pretty much anything that can't be sent by the composer as a message. For
// those we rely on local echo giving the impression of things changing, and expect them
// to be quick.
const simpleSendableEvents = [EventType.Sticker, EventType.RoomMessage, EventType.RoomMessageEncrypted];
const simpleSendableEvents = [
EventType.Sticker,
EventType.RoomMessage,
EventType.RoomMessageEncrypted,
EventType.PollStart,
];
if (!simpleSendableEvents.includes(this.props.mxEvent.getType() as EventType)) return false;

// Default case
Expand Down

0 comments on commit ff34fc7

Please sign in to comment.