From 54ffce9d20f760cc3b352d74658c04295a2278ae Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Tue, 4 Jul 2023 10:10:03 +0100 Subject: [PATCH] Add isLocation to ComposerEvent analytics events (#11187) --- src/components/views/rooms/EditMessageComposer.tsx | 1 + src/components/views/rooms/SendMessageComposer.tsx | 1 + src/components/views/rooms/wysiwyg_composer/utils/message.ts | 2 ++ 3 files changed, 4 insertions(+) diff --git a/src/components/views/rooms/EditMessageComposer.tsx b/src/components/views/rooms/EditMessageComposer.tsx index 08e307b5dd..61c6473e1b 100644 --- a/src/components/views/rooms/EditMessageComposer.tsx +++ b/src/components/views/rooms/EditMessageComposer.tsx @@ -308,6 +308,7 @@ class EditMessageComposer extends React.Component({ eventName: "Composer", isEditing: true, + isLocation: false, inThread: !!editedEvent?.getThread(), isReply: !!editedEvent.replyEventId, }); diff --git a/src/components/views/rooms/SendMessageComposer.tsx b/src/components/views/rooms/SendMessageComposer.tsx index d7326ee913..712b4c42ce 100644 --- a/src/components/views/rooms/SendMessageComposer.tsx +++ b/src/components/views/rooms/SendMessageComposer.tsx @@ -447,6 +447,7 @@ export class SendMessageComposer extends React.Component({ eventName: "Composer", isEditing: true, + isLocation: false, inThread: Boolean(editedEvent?.getThread()), isReply: Boolean(editedEvent.replyEventId), });