mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Use server-side config for default video encoding quality
This commit is contained in:
@@ -447,7 +447,7 @@ func autodownloadMediaCategoryController(context: AccountContext, connectionType
|
||||
case .wifi:
|
||||
preset = .high
|
||||
}
|
||||
let settings = AutodownloadPresetSettings(disabled: false, photoSizeMax: categories.photo.sizeLimit, videoSizeMax: categories.video.sizeLimit, fileSizeMax: categories.file.sizeLimit, preloadLargeVideo: categories.video.predownload, lessDataForPhoneCalls: false)
|
||||
let settings = AutodownloadPresetSettings(disabled: false, photoSizeMax: categories.photo.sizeLimit, videoSizeMax: categories.video.sizeLimit, fileSizeMax: categories.file.sizeLimit, preloadLargeVideo: categories.video.predownload, lessDataForPhoneCalls: false, videoUploadMaxbitrate: 0)
|
||||
return saveAutodownloadSettings(account: context.account, preset: preset, settings: settings)
|
||||
}
|
||||
return .complete()
|
||||
|
||||
Reference in New Issue
Block a user