desktop: opening SimpleX links inside the app (#3738)

This commit is contained in:
Stanislav Dmitrenko 2024-01-24 00:05:19 +07:00 committed by GitHub
parent 6b7c13f20a
commit 1bb98706a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@ fun WhatsNewView(viaSettings: Boolean = false, close: () -> Unit) {
Icon( Icon(
painterResource(MR.images.ic_open_in_new), stringResource(titleId), tint = MaterialTheme.colors.primary, painterResource(MR.images.ic_open_in_new), stringResource(titleId), tint = MaterialTheme.colors.primary,
modifier = Modifier modifier = Modifier
.clickable { uriHandler.openUriCatching(link) } .clickable { if (link.startsWith("simplex:")) uriHandler.openVerifiedSimplexUri(link) else uriHandler.openUriCatching(link) }
) )
} }