fix send link preview keep being shown

Relates #1810
pull/1811/head
Audric Ackermann 4 years ago
parent 6bf95a47e3
commit 99f862dd0f
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -242,6 +242,7 @@ class SessionCompositionBoxInner extends React.Component<Props, State> {
if (this.isURL(pastedText) && !window.getSettingValue('link-preview-setting', false)) {
const alreadyDisplayedPopup =
(await getItemById(hasLinkPreviewPopupBeenDisplayed))?.value || false;
if (!alreadyDisplayedPopup) {
window.inboxStore?.dispatch(
updateConfirmModal({
shouldShowConfirm:
@ -259,6 +260,7 @@ class SessionCompositionBoxInner extends React.Component<Props, State> {
);
}
}
}
/**
*

Loading…
Cancel
Save