Fix note to self message detail text.

This commit is contained in:
mtang-signal
2024-04-16 15:36:46 -04:00
committed by Greyson Parrelli
parent 5f31f5966c
commit cd03da54d5
2 changed files with 8 additions and 2 deletions

View File

@@ -40,9 +40,15 @@ public class FromTextView extends SimpleEmojiTextView {
}
public void setText(Recipient recipient, @Nullable CharSequence fromString, @Nullable CharSequence suffix, boolean asThread) {
setText(recipient, fromString, suffix, asThread, false);
}
public void setText(Recipient recipient, @Nullable CharSequence fromString, @Nullable CharSequence suffix, boolean asThread, boolean showSelfAsYou) {
SpannableStringBuilder builder = new SpannableStringBuilder();
if (asThread && recipient.isSelf()) {
if (asThread && recipient.isSelf() && showSelfAsYou) {
builder.append(getContext().getString(R.string.Recipient_you));
} else if (asThread && recipient.isSelf()) {
builder.append(getContext().getString(R.string.note_to_self));
} else {
builder.append(fromString);