From 2f608b47059e05086b9eed5a30d5e560e520d899 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Tue, 28 Sep 2021 15:42:32 +0300 Subject: [PATCH] Message: Fix broken UI for stickers sent via bot (#1469) --- src/components/middle/message/Message.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/middle/message/Message.tsx b/src/components/middle/message/Message.tsx index a8e2f65f..1b3344ec 100644 --- a/src/components/middle/message/Message.tsx +++ b/src/components/middle/message/Message.tsx @@ -621,7 +621,7 @@ const Message: FC = ({ function renderSenderName() { const shouldRender = !(customShape && !viaBotId) && ( (withSenderName && !photo && !video) || asForwarded || viaBotId || forceSenderName - ) && (!isInDocumentGroup || isFirstInDocumentGroup); + ) && (!isInDocumentGroup || isFirstInDocumentGroup) && !(hasReply && customShape); if (!shouldRender) { return undefined;