Merge pull request #1811 from Bilb/fix-send-link-preview

fix send link preview keep being shown
pull/1821/head
Audric Ackermann 4 years ago committed by GitHub
commit 73c2630858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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