Skip to content

Commit

Permalink
fix: Hide tags for non premium users
Browse files Browse the repository at this point in the history
Co-authored-by: tehcneko <chsqwyx@gmail.com>
  • Loading branch information
omg-xtao and tehcneko committed Feb 10, 2024
1 parent 3b60caa commit 8136a47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -8054,7 +8054,7 @@ public void onAllEffectsEnd() {
}
}

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) {
Expand Down Expand Up @@ -28519,7 +28519,7 @@ public boolean onTouch(View v, MotionEvent event) {
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));
Expand Down

0 comments on commit 8136a47

Please sign in to comment.