From 8136a470e75828b97a29624bf65596b8b04ba516 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sat, 10 Feb 2024 20:44:09 +0800 Subject: [PATCH] fix: Hide tags for non premium users Co-authored-by: tehcneko --- TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java index fc3ca6a63..679ab4877 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java @@ -8054,7 +8054,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not } } - if (getDialogId() == getUserConfig().getClientUserId()) { + if (getDialogId() == getUserConfig().getClientUserId() && (getUserConfig().isPremium() && NekoConfig.disableTrending.Bool())) { actionBarSearchTags = new SearchTagsList(context, ChatActivity.this, contentView, currentAccount, getSavedDialogId(), themeDelegate, true) { @Override protected boolean setFilter(ReactionsLayoutInBubble.VisibleReaction reaction) { @@ -28519,7 +28519,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not sheet.show(); })); } - if (isReactionsAvailable && (!tags || !getMessagesController().premiumFeaturesBlocked())) { + if (isReactionsAvailable && (!tags || (!getMessagesController().premiumFeaturesBlocked() && (getUserConfig().isPremium() && NekoConfig.disableTrending.Bool())))) { int pad = 22; int sPad = 24; reactionsLayout.setPadding(AndroidUtilities.dp(4) + (LocaleController.isRTL ? 0 : sPad), AndroidUtilities.dp(4), AndroidUtilities.dp(4) + (LocaleController.isRTL ? sPad : 0), AndroidUtilities.dp(pad));