Fix long click on simple formatted messages (#1327)

This commit is contained in:
Jorge Martin Espinosa 2023-09-14 11:51:10 +02:00 committed by GitHub
parent 206579e647
commit 754671303a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

1
changelog.d/1232.bugfix Normal file
View file

@ -0,0 +1 @@
Fix long click on simple formatted messages

View file

@ -126,7 +126,12 @@ private fun HtmlBody(
when (val node = nodes.next()) {
is TextNode -> {
if (!node.isBlank) {
ClickableLinkText(text = node.text(), interactionSource = interactionSource)
ClickableLinkText(
text = node.text(),
interactionSource = interactionSource,
onClick = onTextClicked,
onLongClick = onTextLongClicked,
)
}
}
is Element -> {