(edited) string in edited message body
This commit is contained in:
Valere 2019-07-19 09:57:57 +02:00
parent c3d945d6bb
commit c00dbce536
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ Other changes:
- -


Bugfix: Bugfix:
- - Edited message: link confusion when (edited) appears in body (#398)


Translations: Translations:
- -

View File

@ -323,7 +323,7 @@ class MessageItemFactory @Inject constructor(
val editedSuffix = stringProvider.getString(R.string.edited_suffix) val editedSuffix = stringProvider.getString(R.string.edited_suffix)
spannable.append(" ").append(editedSuffix) spannable.append(" ").append(editedSuffix)
val color = colorProvider.getColorFromAttribute(R.attr.vctr_list_header_secondary_text_color) val color = colorProvider.getColorFromAttribute(R.attr.vctr_list_header_secondary_text_color)
val editStart = spannable.indexOf(editedSuffix) val editStart = spannable.lastIndexOf(editedSuffix)
val editEnd = editStart + editedSuffix.length val editEnd = editStart + editedSuffix.length
spannable.setSpan( spannable.setSpan(
ForegroundColorSpan(color), ForegroundColorSpan(color),