Skip to content

Commit

Permalink
fix: reply-to user or channel name
Browse files Browse the repository at this point in the history
Signed-off-by: Next Alone <12210746+NextAlone@users.noreply.github.com>
  • Loading branch information
NextAlone committed Apr 13, 2024
1 parent 42c3043 commit 878ea96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9871,7 +9871,7 @@ public static CharSequence groupSpan() {
private static CharSequence channelSpan;
public static CharSequence channelSpan() {
if (channelSpan == null) {
channelSpan = new SpannableStringBuilder("c");
channelSpan = new SpannableStringBuilder(LocaleController.getString(R.string.Channel));
ColoredImageSpan span = new ColoredImageSpan(R.drawable.msg_folders_channels);
span.setScale(.7f, .7f);
((SpannableStringBuilder) channelSpan).setSpan(span, 0, 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13680,7 +13680,7 @@ public void showFieldPanel(boolean show, MessageObject messageObjectToReply, Mes
nameText = AndroidUtilities.replaceCharSequence("%s", LocaleController.getString(R.string.ReplyTo), name == null ? "" : name);
}
nameText = Emoji.replaceEmoji(nameText, replyNameTextView.getPaint().getFontMetricsInt(), false);
replyNameTextView.setText(StringUtils.zalgoFilter(name));
replyNameTextView.setText(StringUtils.zalgoFilter(nameText));
replyIconImageView.setContentDescription(LocaleController.getString("AccDescrReplying", R.string.AccDescrReplying));
replyCloseImageView.setContentDescription(LocaleController.getString("AccDescrCancelReply", R.string.AccDescrCancelReply));

Expand Down

0 comments on commit 878ea96

Please sign in to comment.