fix: Hide tags for non premium users

Co-authored-by: tehcneko <chsqwyx@gmail.com>
This commit is contained in:
xtaodada 2024-02-10 20:44:09 +08:00
parent 3b60caaeb0
commit 8136a470e7
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -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));