Message: Fix sending error if pending webpage fails (#6709)
This commit is contained in:
parent
5a7b0b1492
commit
9c66d6cc86
@ -599,7 +599,8 @@ const Composer: FC<OwnProps & StateProps> = ({
|
|||||||
handleWithConfirmation: handleActionWithPaymentConfirmation,
|
handleWithConfirmation: handleActionWithPaymentConfirmation,
|
||||||
} = usePaidMessageConfirmation(starsForAllMessages, isStarsBalanceModalOpen, starsBalance);
|
} = usePaidMessageConfirmation(starsForAllMessages, isStarsBalanceModalOpen, starsBalance);
|
||||||
|
|
||||||
const hasWebPagePreview = !hasAttachments && canAttachEmbedLinks && !noWebPage && Boolean(webPagePreview);
|
const hasWebPagePreview = !hasAttachments && canAttachEmbedLinks && !noWebPage
|
||||||
|
&& webPagePreview?.webpageType === 'full';
|
||||||
const isComposerBlocked = isSendTextBlocked && !editingMessage;
|
const isComposerBlocked = isSendTextBlocked && !editingMessage;
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user