From a2044647239aefc34bf500e6a706b05fad79a58c Mon Sep 17 00:00:00 2001 From: William Grant Date: Tue, 16 May 2023 13:30:40 +1000 Subject: [PATCH] fix: move quote not found comment for better context --- ts/state/selectors/conversations.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ts/state/selectors/conversations.ts b/ts/state/selectors/conversations.ts index 5a47407ff..6f8ba2e5b 100644 --- a/ts/state/selectors/conversations.ts +++ b/ts/state/selectors/conversations.ts @@ -1004,12 +1004,16 @@ export const getMessageQuoteProps = createSelector( let isFromMe = UserUtils.isUsFromCache(author) || false; + // NOTE: if the message is not found, we still want to render the quote const quoteNotFound = { direction, - quote: { author, isFromMe, referencedMessageNotFound: true }, + quote: { + author, + isFromMe, + referencedMessageNotFound: true, + }, }; - // NOTE: if the message is not found, we still want to render the quote if (!quotesProps || isEmpty(quotesProps)) { return quoteNotFound; } @@ -1054,7 +1058,10 @@ export const getMessageQuoteProps = createSelector( convoId: convo.id, }; - return { direction, quote }; + return { + direction, + quote, + }; } ); // tslint:enable: cyclomatic-complexity