mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 18:47:03 +05:30
refactor(android): move link metadata extraction to Unfurl
Crux is doing major changes for no good reason
This commit is contained in:
parent
37f42dc107
commit
0359860b82
7 changed files with 41 additions and 43 deletions
|
@ -59,7 +59,7 @@ internal fun CommentsHeader(
|
|||
val uriHandler = LocalUriHandler.current
|
||||
val linkMetadata by
|
||||
produceState(
|
||||
initialValue = LinkMetadata(postDetails.url, null, null),
|
||||
initialValue = LinkMetadata(postDetails.url, null),
|
||||
) {
|
||||
runCatching { postActions.getLinkMetadata(postDetails.url) }
|
||||
.onSuccess { metadata -> value = metadata }
|
||||
|
|
|
@ -289,7 +289,7 @@ fun LobstersCardPreview() {
|
|||
}
|
||||
|
||||
override suspend fun getLinkMetadata(url: String): LinkMetadata {
|
||||
return LinkMetadata("", "", "")
|
||||
return LinkMetadata("", "")
|
||||
}
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue