diff --git a/vector/src/main/java/im/vector/app/core/utils/SpannableUtils.kt b/vector/src/main/java/im/vector/app/core/utils/SpannableUtils.kt index 292468b68f..aa1917e326 100644 --- a/vector/src/main/java/im/vector/app/core/utils/SpannableUtils.kt +++ b/vector/src/main/java/im/vector/app/core/utils/SpannableUtils.kt @@ -60,7 +60,7 @@ fun Span.bullet(text: CharSequence = "", fun String.colorTerminatingFullStop(@ColorInt color: Int): CharSequence { val fullStop = "." - return if (this.endsWith(fullStop)) { + return if (endsWith(fullStop)) { span { +this@colorTerminatingFullStop.removeSuffix(fullStop) span(fullStop) {