mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
Don't clear link preview on text selection
This commit is contained in:
@@ -96,11 +96,15 @@ function _maybeGrabLinkPreview(
|
||||
return;
|
||||
}
|
||||
|
||||
const links = LinkPreview.findLinks(message, caretLocation);
|
||||
if (currentlyMatchedLink && links.includes(currentlyMatchedLink)) {
|
||||
return;
|
||||
if (currentlyMatchedLink) {
|
||||
const allLinks = LinkPreview.findLinks(message);
|
||||
|
||||
if (allLinks.includes(currentlyMatchedLink)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
const links = LinkPreview.findLinks(message, caretLocation);
|
||||
currentlyMatchedLink = undefined;
|
||||
excludedPreviewUrls = excludedPreviewUrls || [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user