From fb51b2009610b2bb95c87826cf0a17a995d42805 Mon Sep 17 00:00:00 2001 From: William Grant Date: Tue, 16 May 2023 13:09:23 +1000 Subject: [PATCH] fix: cleanup TODOS --- ts/components/conversation/SessionMessagesList.tsx | 2 -- ts/interactions/conversationInteractions.ts | 1 - ts/state/ducks/conversations.ts | 1 - 3 files changed, 4 deletions(-) diff --git a/ts/components/conversation/SessionMessagesList.tsx b/ts/components/conversation/SessionMessagesList.tsx index 064a833c3..6feb5d4dd 100644 --- a/ts/components/conversation/SessionMessagesList.tsx +++ b/ts/components/conversation/SessionMessagesList.tsx @@ -155,8 +155,6 @@ export const SessionMessagesList = (props: { return [, ...componentToMerge]; } - // TODO Move Quote rendering logic here maybe? - if (!messageProps) { return null; } diff --git a/ts/interactions/conversationInteractions.ts b/ts/interactions/conversationInteractions.ts index 1618ff45d..6b4cd2898 100644 --- a/ts/interactions/conversationInteractions.ts +++ b/ts/interactions/conversationInteractions.ts @@ -458,7 +458,6 @@ export async function uploadOurAvatar(newAvatarDecrypted?: ArrayBuffer) { } export async function replyToMessage(messageId: string) { - // TODO Use Quote Lookup Object here const quotedMessageModel = await Data.getMessageById(messageId); if (!quotedMessageModel) { window.log.warn('Failed to find message to reply to'); diff --git a/ts/state/ducks/conversations.ts b/ts/state/ducks/conversations.ts index 24b477265..16bc8314d 100644 --- a/ts/state/ducks/conversations.ts +++ b/ts/state/ducks/conversations.ts @@ -567,7 +567,6 @@ function handleMessageExpiredOrDeleted( if (messageInStoreIndex >= 0) { // Check if the message is quoted somewhere, and if so, remove it from the quotes const msgProps = state.messages[messageInStoreIndex].propsForMessage; - // TODO check if message is a group or public group because we will need to use the server timestamp const { timestamp, sender } = msgProps; if (timestamp && sender) { const message2Delete = editedQuotes[`${timestamp}-${sender}`];