Skip to content

Commit

Permalink
feat: story video change quality no need premium
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Feb 12, 2024
1 parent e69b607 commit 3ccc1a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3ccc1a4

Please sign in to comment.