|  |  | @ -997,33 +997,39 @@ export const getMessageQuoteProps = createSelector( | 
			
		
	
		
		
			
				
					
					|  |  |  |       return undefined; |  |  |  |       return undefined; | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     const { id, author, authorName: _authorName } = msgProps.quote; |  |  |  |     const { id, author } = msgProps.quote; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     if (!id || !author) { |  |  |  |     if (!id || !author) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       return undefined; |  |  |  |       return undefined; | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     let isFromMe = UserUtils.isUsFromCache(author) || false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     const quoteNotFound = { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       direction, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       quote: { author, isFromMe, referencedMessageNotFound: true }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     }; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     // NOTE: if the message is not found, we still want to render the quote
 |  |  |  |     // NOTE: if the message is not found, we still want to render the quote
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (!quotesProps || isEmpty(quotesProps)) { |  |  |  |     if (!quotesProps || isEmpty(quotesProps)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       return { direction, quote: { author, referencedMessageNotFound: true } }; |  |  |  |       return quoteNotFound; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     const sourceMessage = quotesProps[`${id}-${author}`]; |  |  |  |     const sourceMessage = quotesProps[`${id}-${author}`]; | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (!sourceMessage) { |  |  |  |     if (!sourceMessage) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       return { direction, quote: { author, referencedMessageNotFound: true } }; |  |  |  |       return quoteNotFound; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     const sourceMsgProps = sourceMessage.propsForMessage; |  |  |  |     const sourceMsgProps = sourceMessage.propsForMessage; | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (!sourceMsgProps || sourceMsgProps.isDeleted) { |  |  |  |     if (!sourceMsgProps || sourceMsgProps.isDeleted) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       return { direction, quote: { author, referencedMessageNotFound: true } }; |  |  |  |       return quoteNotFound; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     const convo = getConversationController().get(sourceMsgProps.convoId); |  |  |  |     const convo = getConversationController().get(sourceMsgProps.convoId); | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (!convo) { |  |  |  |     if (!convo) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       return { direction, quote: { author, referencedMessageNotFound: true } }; |  |  |  |       return quoteNotFound; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     const attachment = sourceMsgProps.attachments && sourceMsgProps.attachments[0]; |  |  |  |     const attachment = sourceMsgProps.attachments && sourceMsgProps.attachments[0]; | 
			
		
	
		
		
			
				
					
					|  |  |  |     let isFromMe = convo ? UserUtils.isUsFromCache(author) : false; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (convo.isPublic() && PubKey.hasBlindedPrefix(sourceMsgProps.sender)) { |  |  |  |     if (convo.isPublic() && PubKey.hasBlindedPrefix(sourceMsgProps.sender)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       const room = OpenGroupData.getV2OpenGroupRoom(sourceMsgProps.convoId); |  |  |  |       const room = OpenGroupData.getV2OpenGroupRoom(sourceMsgProps.convoId); | 
			
		
	
	
		
		
			
				
					|  |  | @ -1038,16 +1044,11 @@ export const getMessageQuoteProps = createSelector( | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     const authorName = isFromMe |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       ? window.i18n('you') |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       : convo.getNicknameOrRealUsernameOrPlaceholder(); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     const quote: PropsForQuote = { |  |  |  |     const quote: PropsForQuote = { | 
			
		
	
		
		
			
				
					
					|  |  |  |       text: sourceMsgProps.text, |  |  |  |       text: sourceMsgProps.text, | 
			
		
	
		
		
			
				
					
					|  |  |  |       attachment: attachment ? processQuoteAttachment(attachment) : undefined, |  |  |  |       attachment: attachment ? processQuoteAttachment(attachment) : undefined, | 
			
		
	
		
		
			
				
					
					|  |  |  |       isFromMe, |  |  |  |       isFromMe, | 
			
		
	
		
		
			
				
					
					|  |  |  |       author: sourceMsgProps.sender, |  |  |  |       author: sourceMsgProps.sender, | 
			
		
	
		
		
			
				
					
					|  |  |  |       authorName, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       id: sourceMsgProps.id, |  |  |  |       id: sourceMsgProps.id, | 
			
		
	
		
		
			
				
					
					|  |  |  |       referencedMessageNotFound: false, |  |  |  |       referencedMessageNotFound: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |       convoId: convo.id, |  |  |  |       convoId: convo.id, | 
			
		
	
	
		
		
			
				
					|  |  | 
 |