desktop: clickable links in quoted messages (#2943)

This commit is contained in:
Stanislav Dmitrenko 2023-08-17 17:20:27 +03:00 committed by GitHub
parent 107b6e1aec
commit 63ca7a34ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,7 @@ import androidx.compose.ui.text.font.FontStyle
import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.* import androidx.compose.ui.unit.*
import chat.simplex.common.model.* import chat.simplex.common.model.*
import chat.simplex.common.platform.appPlatform
import chat.simplex.common.ui.theme.* import chat.simplex.common.ui.theme.*
import chat.simplex.common.views.helpers.* import chat.simplex.common.views.helpers.*
import chat.simplex.common.platform.base64ToBitmap import chat.simplex.common.platform.base64ToBitmap
@ -57,7 +58,8 @@ fun FramedItemView(
maxLines = lines, maxLines = lines,
overflow = TextOverflow.Ellipsis, overflow = TextOverflow.Ellipsis,
style = TextStyle(fontSize = 15.sp, color = MaterialTheme.colors.onSurface), style = TextStyle(fontSize = 15.sp, color = MaterialTheme.colors.onSurface),
linkMode = linkMode linkMode = linkMode,
uriHandler = if (appPlatform.isDesktop) uriHandler else null
) )
} }