mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
fix: move quote not found comment for better context
This commit is contained in:
parent
fb51b20096
commit
a204464723
1 changed files with 10 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue