ui: fix link preview cancellation (#3750)
This commit is contained in:
1 parent
d6d2e6e1eb
commit
fbe3353434
2 files changed
+7
No files matched your search
+4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user