Do not regenerate url preview if url has not changed.

This commit is contained in:
Clark
2023-07-24 14:43:01 -04:00
committed by GitHub
parent 7420123519
commit 74c261f913

View File

@@ -65,6 +65,9 @@ class LinkPreviewViewModelV2(
}
val link: Optional<Link> = LinkPreviewUtil.findValidPreviewUrls(text).findFirst()
if (link.isPresent && link.get().url.equals(activeUrl)) {
return@publish
}
activeRequest.dispose()