Message: Fix broken UI for stickers sent via bot (#1469)

This commit is contained in:
Alexander Zinchuk 2021-09-28 15:42:32 +03:00
parent 5b364441c4
commit 2f608b4705

View File

@ -621,7 +621,7 @@ const Message: FC<OwnProps & StateProps & DispatchProps> = ({
function renderSenderName() { function renderSenderName() {
const shouldRender = !(customShape && !viaBotId) && ( const shouldRender = !(customShape && !viaBotId) && (
(withSenderName && !photo && !video) || asForwarded || viaBotId || forceSenderName (withSenderName && !photo && !video) || asForwarded || viaBotId || forceSenderName
) && (!isInDocumentGroup || isFirstInDocumentGroup); ) && (!isInDocumentGroup || isFirstInDocumentGroup) && !(hasReply && customShape);
if (!shouldRender) { if (!shouldRender) {
return undefined; return undefined;