From 70f57797f5b727c92dc44f6369ce679c1c40a32c Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Mon, 10 Oct 2022 17:38:41 +0200 Subject: [PATCH] Add more todo in message.ts --- .../views/rooms/wysiwyg_composer/message.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/views/rooms/wysiwyg_composer/message.ts b/src/components/views/rooms/wysiwyg_composer/message.ts index 9f0f47d128..c1569324ef 100644 --- a/src/components/views/rooms/wysiwyg_composer/message.ts +++ b/src/components/views/rooms/wysiwyg_composer/message.ts @@ -45,9 +45,7 @@ export function createMessageContent( { relation, replyToEvent, permalinkCreator, includeReplyLegacyFallback = true }: Omit, ): IContent { - const isEmote = false; - - // TODO do somethings about emote ? + // TODO emote ? /*const isEmote = containsEmote(model); if (isEmote) { @@ -62,7 +60,9 @@ export function createMessageContent( const body = message; const content: IContent = { - msgtype: isEmote ? "m.emote" : "m.text", + // TODO emote + // msgtype: isEmote ? "m.emote" : "m.text", + msgtype: "m.text", body: body, }; @@ -106,10 +106,12 @@ export function sendMessage( isReply: Boolean(replyToEvent), inThread: relation?.rel_type === THREAD_RELATION_TYPE.name, }; - if (posthogEvent.inThread) { + + // TODO thread + /*if (posthogEvent.inThread) { const threadRoot = room.findEventById(relation?.event_id); posthogEvent.startsThread = threadRoot?.getThread()?.events.length === 1; - } + }*/ PosthogAnalytics.instance.trackEvent(posthogEvent); let content: IContent;