From c05e52ab8290c1b498dcf41a72c85062385ae797 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Fri, 6 Jan 2023 10:18:05 +0100 Subject: [PATCH 1/2] Enable sent receipt for poll start events --- 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 32136018a8..08f8778db8 100644 --- a/src/components/views/rooms/EventTile.tsx +++ b/src/components/views/rooms/EventTile.tsx @@ -322,7 +322,7 @@ export class UnwrappedEventTile extends React.Component // 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 From 88a983ab674f60028a3567701618aaa7de34d2f2 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Fri, 6 Jan 2023 10:37:42 +0100 Subject: [PATCH 2/2] Run prettier --- src/components/views/rooms/EventTile.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/EventTile.tsx b/src/components/views/rooms/EventTile.tsx index 08f8778db8..47e3fea9fd 100644 --- a/src/components/views/rooms/EventTile.tsx +++ b/src/components/views/rooms/EventTile.tsx @@ -322,7 +322,12 @@ export class UnwrappedEventTile extends React.Component // 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, EventType.PollStart]; + const simpleSendableEvents = [ + EventType.Sticker, + EventType.RoomMessage, + EventType.RoomMessageEncrypted, + EventType.PollStart, + ]; if (!simpleSendableEvents.includes(this.props.mxEvent.getType() as EventType)) return false; // Default case