diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/Emoji.java b/TMessagesProj/src/main/java/org/telegram/messenger/Emoji.java index a4150bd4e..67e6e43c6 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/Emoji.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/Emoji.java @@ -545,8 +545,8 @@ public class Emoji { public static CharSequence replaceEmoji(CharSequence cs, Paint.FontMetricsInt fontMetrics, int size, boolean createNew, int[] emojiOnly, boolean allowAnimated, AtomicReference> viewRef) { allowAnimated = false; - if (NekoConfig.useSystemEmoji.Bool() || cs == null || cs.length() == 0) { - return cs; + if (NekoConfig.useSystemEmoji.Bool() || cs.length() == 0) { + return Spannable.Factory.getInstance().newSpannable(cs.toString()); } Spannable s; if (!createNew && cs instanceof Spannable) { diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java index b1f360f13..3f03d41bd 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java @@ -8018,7 +8018,7 @@ public class ProfileActivity extends BaseFragment implements NotificationCenter. while (text.contains("\n\n\n")) { text = text.replace("\n\n\n", "\n\n"); } - aboutLinkCell.setText(text, ChatObject.isChannel(currentChat) && !currentChat.megagroup); + aboutLinkCell.setText(text, true); } if (position == bioRow) { String value;