mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-08 19:10:53 +00:00
Always send HD photos
This commit is contained in:
parent
8c290e9a4e
commit
387faa4b2e
@ -58,7 +58,7 @@
|
||||
"Stories.Warning.NoticeStealth" = "%@ will not be able to see that you viewed their Story.";
|
||||
|
||||
"Settings.Photo.Quality.Notice" = "Quality of uploaded photos and stories.";
|
||||
"Settings.Photo.SendLarge" = "Send Large Photos";
|
||||
"Settings.Photo.SendLarge" = "Send HD Photos";
|
||||
"Settings.Photo.SendLarge.Notice" = "Increase the side limit on compressed images to 2560px.";
|
||||
|
||||
"Settings.VideoNotes.Header" = "ROUND VIDEOS";
|
||||
|
@ -213,6 +213,9 @@
|
||||
_cropPipe = [[SPipe alloc] init];
|
||||
_captionAbovePipe = [[SPipe alloc] init];
|
||||
_highQualityPhotoPipe = [[SPipe alloc] init];
|
||||
|
||||
// MARK: Swiftgram
|
||||
_highQualityPhoto = [[NSUserDefaults standardUserDefaults] boolForKey:@"sendLargePhotos"];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ public func fetchPhotoLibraryResource(localIdentifier: String, width: Int32?, he
|
||||
if let width, let height {
|
||||
size = CGSize(width: CGFloat(width), height: CGFloat(height))
|
||||
} else {
|
||||
if hd || SGSimpleSettings.shared.sendLargePhotos /* MARK: Swiftgram */ {
|
||||
if hd {
|
||||
size = CGSize(width: 2560.0, height: 2560.0)
|
||||
} else {
|
||||
size = CGSize(width: 1280.0, height: 1280.0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user