mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-03-02 07:23:38 +00:00
Do not regenerate url preview if url has not changed.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user