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 b021565 commit d3c8bee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Expand Up @@ -1488,7 +1488,7 @@ public void reset() {
backgroundChangeBounds = false;
}
}

public boolean contains(int messageId) {
if (messages == null) {
return false;
Expand Down Expand Up @@ -9858,7 +9858,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 All @@ -9869,7 +9869,7 @@ public static CharSequence channelSpan() {
public static CharSequence peerNameWithIcon(int currentAccount, TLRPC.Peer peer) {
return peerNameWithIcon(currentAccount, peer, !(peer instanceof TLRPC.TL_peerUser));
}

public static CharSequence peerNameWithIcon(int currentAccount, TLRPC.Peer peer, boolean anotherChat) {
if (peer instanceof TLRPC.TL_peerUser) {
TLRPC.User user = MessagesController.getInstance(currentAccount).getUser(peer.user_id);
Expand Down
6 changes: 3 additions & 3 deletions TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java
Expand Up @@ -8479,7 +8479,7 @@ private void showBotMessageHint(ChatMessageCell cell, boolean byClick) {
botMessageHint.show();
});
}

private void hideHints() {
if (savedMessagesTagHint != null && savedMessagesTagHint.shown()) {
savedMessagesTagHint.hide();
Expand Down Expand Up @@ -13886,7 +13886,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(MessageHelper.INSTANCE.zalgoFilter(name));
replyNameTextView.setText(MessageHelper.INSTANCE.zalgoFilter(nameText));
replyIconImageView.setContentDescription(LocaleController.getString("AccDescrReplying", R.string.AccDescrReplying));
replyCloseImageView.setContentDescription(LocaleController.getString("AccDescrCancelReply", R.string.AccDescrCancelReply));

Expand Down Expand Up @@ -39631,7 +39631,7 @@ public void updateClip(int[] clip) {
clip[1] = chatListView.getMeasuredHeight() - (chatListView.getPaddingBottom() - AndroidUtilities.dp(3));
}
}

private void updateVisibleWallpaperActions() {
if (chatListView != null && chatAdapter != null) {
for (int i = 0; i < chatListView.getChildCount(); ++i) {
Expand Down

0 comments on commit d3c8bee

Please sign in to comment.