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