fix: Hide tags for non premium users
Co-authored-by: tehcneko <chsqwyx@gmail.com>
This commit is contained in:
parent
3b60caaeb0
commit
8136a470e7
@ -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) {
|
actionBarSearchTags = new SearchTagsList(context, ChatActivity.this, contentView, currentAccount, getSavedDialogId(), themeDelegate, true) {
|
||||||
@Override
|
@Override
|
||||||
protected boolean setFilter(ReactionsLayoutInBubble.VisibleReaction reaction) {
|
protected boolean setFilter(ReactionsLayoutInBubble.VisibleReaction reaction) {
|
||||||
@ -28519,7 +28519,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
|
|||||||
sheet.show();
|
sheet.show();
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
if (isReactionsAvailable && (!tags || !getMessagesController().premiumFeaturesBlocked())) {
|
if (isReactionsAvailable && (!tags || (!getMessagesController().premiumFeaturesBlocked() && (getUserConfig().isPremium() && NekoConfig.disableTrending.Bool())))) {
|
||||||
int pad = 22;
|
int pad = 22;
|
||||||
int sPad = 24;
|
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));
|
reactionsLayout.setPadding(AndroidUtilities.dp(4) + (LocaleController.isRTL ? 0 : sPad), AndroidUtilities.dp(4), AndroidUtilities.dp(4) + (LocaleController.isRTL ? sPad : 0), AndroidUtilities.dp(pad));
|
||||||
|
Loading…
Reference in New Issue
Block a user