From d05217e56006499a107b772a8a09c79b383e2e3f Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 6 Dec 2024 16:43:49 -0600 Subject: Immediately parse pre-filled links in composer state (#6974) * Immediately parse pre-filled links in composer state * Add hack to fix PasteInput height bug * Parse out ext links separately from post links --- src/view/com/composer/text-input/text-input-util.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/view/com/composer/text-input/text-input-util.ts') diff --git a/src/view/com/composer/text-input/text-input-util.ts b/src/view/com/composer/text-input/text-input-util.ts index cbe8ef6af..7268e10f0 100644 --- a/src/view/com/composer/text-input/text-input-util.ts +++ b/src/view/com/composer/text-input/text-input-util.ts @@ -6,7 +6,7 @@ export type LinkFacetMatch = { } export function suggestLinkCardUri( - mayBePaste: boolean, + suggestLinkImmediately: boolean, nextDetectedUris: Map, prevDetectedUris: Map, pastSuggestedUris: Set, @@ -20,8 +20,8 @@ export function suggestLinkCardUri( // Don't suggest already added or already dismissed link cards. continue } - if (mayBePaste) { - // Immediately add the pasted link without waiting to type more. + if (suggestLinkImmediately) { + // Immediately add the pasted or intent-prefilled link without waiting to type more. suggestedUris.add(uri) continue } -- cgit 1.4.1