Use buildSpannedString
This commit is contained in:
parent
e55738d7fa
commit
0483832434
1 changed files with 1 additions and 1 deletions
|
|
@ -178,7 +178,7 @@ class TimelineItemContentMessageFactoryTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `test create TextMessageType with HTML formatted body`() = runTest {
|
fun `test create TextMessageType with HTML formatted body`() = runTest {
|
||||||
val expected = SpannableStringBuilder().apply {
|
val expected = buildSpannedString {
|
||||||
append("link to ")
|
append("link to ")
|
||||||
inSpans(URLSpan("https://matrix.org")) {
|
inSpans(URLSpan("https://matrix.org")) {
|
||||||
append("https://matrix.org")
|
append("https://matrix.org")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue