Message: Fix sending error if pending webpage fails (#6709)

This commit is contained in:
zubiden 2026-02-22 23:43:45 +01:00 committed by Alexander Zinchuk
parent 5a7b0b1492
commit 9c66d6cc86

View File

@ -599,7 +599,8 @@ const Composer: FC<OwnProps & StateProps> = ({
handleWithConfirmation: handleActionWithPaymentConfirmation,
} = usePaidMessageConfirmation(starsForAllMessages, isStarsBalanceModalOpen, starsBalance);
const hasWebPagePreview = !hasAttachments && canAttachEmbedLinks && !noWebPage && Boolean(webPagePreview);
const hasWebPagePreview = !hasAttachments && canAttachEmbedLinks && !noWebPage
&& webPagePreview?.webpageType === 'full';
const isComposerBlocked = isSendTextBlocked && !editingMessage;
useEffect(() => {