Revert "Add isLocation to ComposerEvent analytics events" (#11190)

This reverts commit 739a0c7afbcc6ab8fb0dd0ed0c5faba45a51259c.
This commit is contained in:
Andy Balaam 2023-07-04 17:39:47 +01:00 committed by GitHub
parent 1a2d201863
commit 3ad9a8fe3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 4 deletions

View file

@ -308,7 +308,6 @@ class EditMessageComposer extends React.Component<IEditMessageComposerProps, ISt
PosthogAnalytics.instance.trackEvent<ComposerEvent>({
eventName: "Composer",
isEditing: true,
isLocation: false,
inThread: !!editedEvent?.getThread(),
isReply: !!editedEvent.replyEventId,
});

View file

@ -447,7 +447,6 @@ export class SendMessageComposer extends React.Component<ISendMessageComposerPro
const posthogEvent: ComposerEvent = {
eventName: "Composer",
isEditing: false,
isLocation: false,
isReply: !!this.props.replyToEvent,
inThread: this.props.relation?.rel_type === THREAD_RELATION_TYPE.name,
};

View file

@ -64,7 +64,6 @@ export async function sendMessage(
const posthogEvent: ComposerEvent = {
eventName: "Composer",
isEditing: false,
isLocation: false,
isReply: Boolean(replyToEvent),
// TODO thread
inThread: relation?.rel_type === THREAD_RELATION_TYPE.name,
@ -200,7 +199,6 @@ export async function editMessage(
PosthogAnalytics.instance.trackEvent<ComposerEvent>({
eventName: "Composer",
isEditing: true,
isLocation: false,
inThread: Boolean(editedEvent?.getThread()),
isReply: Boolean(editedEvent.replyEventId),
});