From e3c27f101698bb84c1ce1d4fa29cdcb1b06928d3 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Mon, 20 Sep 2021 05:48:20 +0200 Subject: [PATCH] fix reply for incoming messages (#1930) --- ts/components/conversation/message/MessageContextMenu.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ts/components/conversation/message/MessageContextMenu.tsx b/ts/components/conversation/message/MessageContextMenu.tsx index 5573a331e..b4d8c2bc5 100644 --- a/ts/components/conversation/message/MessageContextMenu.tsx +++ b/ts/components/conversation/message/MessageContextMenu.tsx @@ -63,7 +63,8 @@ export const MessageContextMenu = (props: Props) => { isBlocked, } = selected; const { messageId, contextMenuId } = props; - const showRetry = status === 'error' && direction === 'outgoing'; + const isOutgoing = direction === 'outgoing'; + const showRetry = status === 'error' && isOutgoing; const isSent = status === 'sent'; const multipleAttachments = attachments && attachments.length > 1; @@ -169,7 +170,7 @@ export const MessageContextMenu = (props: Props) => { ) : null} {window.i18n('copyMessage')} - {isSent && {window.i18n('replyToMessage')}} + {(isSent || !isOutgoing) && {window.i18n('replyToMessage')}} {window.i18n('moreInformation')} {showRetry ? {window.i18n('resend')} : null} {isDeletable ? (