ui: fix link preview cancellation (#3750)

This commit is contained in:
spaced4ndy authored and GitHub committed 2024-01-25 14:58:39 +04:00
1 parent d6d2e6e1eb
commit fbe3353434
2 files changed
+7

No files matched your search

@@ -583,6 +583,10 @@ fun ComposeView(
}
fun cancelLinkPreview() {
val pendingLink = pendingLinkUrl.value
if (pendingLink != null) {
cancelledLinks.add(pendingLink)
}
val uri = composeState.value.linkPreview?.uri
if (uri != null) {
cancelledLinks.add(uri)