mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
do not show warning about link preview if they are already ON
This commit is contained in:
parent
e69873d6ba
commit
e82d51fff0
|
@ -239,7 +239,7 @@ class SessionCompositionBoxInner extends React.Component<Props, State> {
|
|||
*/
|
||||
private async showLinkSharingConfirmationModalDialog(e: any) {
|
||||
const pastedText = e.clipboardData.getData('text');
|
||||
if (this.isURL(pastedText)) {
|
||||
if (this.isURL(pastedText) && !window.getSettingValue('link-preview-setting', false)) {
|
||||
const alreadyDisplayedPopup =
|
||||
(await getItemById(hasLinkPreviewPopupBeenDisplayed))?.value || false;
|
||||
window.inboxStore?.dispatch(
|
||||
|
|
Loading…
Reference in a new issue