Fix note to self label in conversation settings.

fork-5.53.8
Alex Hart 2022-05-20 14:27:06 -03:00
rodzic 6dec6cef27
commit 63f4f0bcec
1 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -38,7 +38,12 @@ object BioTextPreference {
) : BioTextPreferenceModel<RecipientModel>() {
override fun getHeadlineText(context: Context): CharSequence {
val name = recipient.getDisplayNameOrUsername(context)
val name = if (recipient.isSelf) {
context.getString(R.string.note_to_self)
} else {
recipient.getDisplayNameOrUsername(context)
}
return if (recipient.showVerified()) {
SpannableStringBuilder(name).apply {
SpanUtil.appendCenteredImageSpan(this, ContextUtil.requireDrawable(context, R.drawable.ic_official_28), 28, 28)