From 32f69ef27e16b18e24ba09908ee7cd411f399728 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 14 Jan 2024 20:01:33 +0800 Subject: [PATCH] chore: remove some premium suggestions Co-authored-by: tehcneko --- .../java/org/telegram/ui/DialogsActivity.java | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/DialogsActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/DialogsActivity.java index df215164d9..3d460d132e 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/DialogsActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/DialogsActivity.java @@ -5437,28 +5437,28 @@ private int getMaxScrollYOffset() { } public boolean isPremiumRestoreHintVisible() { - if (!MessagesController.getInstance(currentAccount).premiumFeaturesBlocked() && folderId == 0) { - return MessagesController.getInstance(currentAccount).pendingSuggestions.contains("PREMIUM_RESTORE") && !getUserConfig().isPremium(); - } +// if (!MessagesController.getInstance(currentAccount).premiumFeaturesBlocked() && folderId == 0) { +// return MessagesController.getInstance(currentAccount).pendingSuggestions.contains("PREMIUM_RESTORE") && !getUserConfig().isPremium(); +// } return false; } public boolean isPremiumChristmasHintVisible() { - if (!MessagesController.getInstance(currentAccount).premiumFeaturesBlocked() && folderId == 0) { - return MessagesController.getInstance(currentAccount).pendingSuggestions.contains("PREMIUM_CHRISTMAS"); - } +// if (!MessagesController.getInstance(currentAccount).premiumFeaturesBlocked() && folderId == 0) { +// return MessagesController.getInstance(currentAccount).pendingSuggestions.contains("PREMIUM_CHRISTMAS"); +// } return false; } public boolean isPremiumHintVisible() { - if (!MessagesController.getInstance(currentAccount).premiumFeaturesBlocked() && folderId == 0) { - if (MessagesController.getInstance(currentAccount).pendingSuggestions.contains("PREMIUM_UPGRADE") && getUserConfig().isPremium() || MessagesController.getInstance(currentAccount).pendingSuggestions.contains("PREMIUM_ANNUAL") && !getUserConfig().isPremium()) { - if (UserConfig.getInstance(currentAccount).isPremium() ? !BuildVars.useInvoiceBilling() && MediaDataController.getInstance(currentAccount).getPremiumHintAnnualDiscount(true) != null : MediaDataController.getInstance(currentAccount).getPremiumHintAnnualDiscount(false) != null) { - isPremiumHintUpgrade = MessagesController.getInstance(currentAccount).pendingSuggestions.contains("PREMIUM_UPGRADE"); - return true; - } - } - } +// if (!MessagesController.getInstance(currentAccount).premiumFeaturesBlocked() && folderId == 0) { +// if (MessagesController.getInstance(currentAccount).pendingSuggestions.contains("PREMIUM_UPGRADE") && getUserConfig().isPremium() || MessagesController.getInstance(currentAccount).pendingSuggestions.contains("PREMIUM_ANNUAL") && !getUserConfig().isPremium()) { +// if (UserConfig.getInstance(currentAccount).isPremium() ? !BuildVars.useInvoiceBilling() && MediaDataController.getInstance(currentAccount).getPremiumHintAnnualDiscount(true) != null : MediaDataController.getInstance(currentAccount).getPremiumHintAnnualDiscount(false) != null) { +// isPremiumHintUpgrade = MessagesController.getInstance(currentAccount).pendingSuggestions.contains("PREMIUM_UPGRADE"); +// return true; +// } +// } +// } return false; }