From 3ccc1a42da60a7007900962e0b84e617afcfe462 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Mon, 12 Feb 2024 16:30:13 +0800 Subject: [PATCH] feat: story video change quality no need premium --- .../main/java/org/telegram/messenger/MessagesController.java | 3 ++- .../src/main/java/org/telegram/ui/Stories/PeerStoriesView.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java b/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java index 06b4cfab0b..5034a5faca 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java @@ -20664,7 +20664,8 @@ public void setSavedViewAs(boolean chats) { } public boolean isStoryQualityFullOnAccount() { - return getUserConfig().isPremium() && storyQualityFull; + return storyQualityFull; +// return getUserConfig().isPremium() && storyQualityFull; } public static boolean isStoryQualityFull() { diff --git a/TMessagesProj/src/main/java/org/telegram/ui/Stories/PeerStoriesView.java b/TMessagesProj/src/main/java/org/telegram/ui/Stories/PeerStoriesView.java index ef4b9c17b7..3e6f4ac030 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/Stories/PeerStoriesView.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/Stories/PeerStoriesView.java @@ -1824,7 +1824,7 @@ public void setColorFilter(ColorFilter colorFilter) { private void createQualityItem(ActionBarPopupWindow.ActionBarPopupWindowLayout popupLayout) { final boolean qualityFull = MessagesController.getInstance(currentAccount).storyQualityFull; - if (UserConfig.getInstance(currentAccount).isPremium()) { + if (UserConfig.getInstance(currentAccount).isPremium() || true) { ActionBarMenuItem.addItem(popupLayout, qualityFull ? R.drawable.menu_quality_sd : R.drawable.menu_quality_hd, LocaleController.getString(qualityFull ? R.string.StoryQualityDecrease : R.string.StoryQualityIncrease), false, resourcesProvider).setOnClickListener(v -> { final boolean newQualityFull = !qualityFull; MessagesController.getInstance(currentAccount).setStoryQuality(newQualityFull);