Fix long click on simple formatted messages (#1327)
This commit is contained in:
parent
fcd33c7721
commit
b7e0befc6a
2 changed files with 7 additions and 1 deletions
1
changelog.d/1232.bugfix
Normal file
1
changelog.d/1232.bugfix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Fix long click on simple formatted messages
|
||||||
|
|
@ -126,7 +126,12 @@ private fun HtmlBody(
|
||||||
when (val node = nodes.next()) {
|
when (val node = nodes.next()) {
|
||||||
is TextNode -> {
|
is TextNode -> {
|
||||||
if (!node.isBlank) {
|
if (!node.isBlank) {
|
||||||
ClickableLinkText(text = node.text(), interactionSource = interactionSource)
|
ClickableLinkText(
|
||||||
|
text = node.text(),
|
||||||
|
interactionSource = interactionSource,
|
||||||
|
onClick = onTextClicked,
|
||||||
|
onLongClick = onTextLongClicked,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
is Element -> {
|
is Element -> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue