fix: move quote not found comment for better context

pull/2757/head
William Grant 2 years ago
parent fb51b20096
commit a204464723

@ -1004,12 +1004,16 @@ export const getMessageQuoteProps = createSelector(
let isFromMe = UserUtils.isUsFromCache(author) || false; let isFromMe = UserUtils.isUsFromCache(author) || false;
// NOTE: if the message is not found, we still want to render the quote
const quoteNotFound = { const quoteNotFound = {
direction, 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)) { if (!quotesProps || isEmpty(quotesProps)) {
return quoteNotFound; return quoteNotFound;
} }
@ -1054,7 +1058,10 @@ export const getMessageQuoteProps = createSelector(
convoId: convo.id, convoId: convo.id,
}; };
return { direction, quote }; return {
direction,
quote,
};
} }
); );
// tslint:enable: cyclomatic-complexity // tslint:enable: cyclomatic-complexity

Loading…
Cancel
Save