Skip to content

Commit

Permalink
[fork] fix local premium
Browse files Browse the repository at this point in the history
  • Loading branch information
luvletter2333 committed Jul 12, 2022
1 parent a6ccf22 commit 8f83e3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ public int getAboutLimit() {
}

public boolean isPremiumUser(TLRPC.User currentUser) {
return NekoConfig.localPremium.Bool() || (!premiumLocked && currentUser.premium);
return (!premiumLocked && currentUser.premium);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ public void setUser(TLRPC.User user, boolean accounts) {
text = Emoji.replaceEmoji(text, nameTextView.getPaint().getFontMetricsInt(), AndroidUtilities.dp(22), false);
} catch (Exception ignore) {}

drawPremium = user.premium || NekoConfig.localPremium.Bool();
drawPremium = user.premium;
// NekoX: test during merge, official value: false
if (text != null && drawPremium) {
SpannableStringBuilder spannableStringBuilder = SpannableStringBuilder.valueOf(text);
Expand Down

0 comments on commit 8f83e3b

Please sign in to comment.