mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-16 02:20:07 +00:00
Request update of a specific version
Even though the UI showed the newest version that the device can install, the download request always triggered downloading the latest version. This commit fixes this bug.
This commit is contained in:
parent
70d2573cbd
commit
c53cd6facd
@ -744,7 +744,7 @@ typedef NS_ENUM(NSInteger, BITUpdateAlertViewTag) {
|
||||
];
|
||||
}
|
||||
|
||||
NSString *hockeyAPIURL = [NSString stringWithFormat:@"%@api/2/apps/%@?format=plist%@", self.serverURL, [self encodedAppIdentifier], extraParameter];
|
||||
NSString *hockeyAPIURL = [NSString stringWithFormat:@"%@api/2/apps/%@/app_versions/%@?format=plist%@", self.serverURL, [self encodedAppIdentifier], [self.newestAppVersion.versionID stringValue], extraParameter];
|
||||
NSString *iOSUpdateURL = [NSString stringWithFormat:@"itms-services://?action=download-manifest&url=%@", bit_URLEncodedString(hockeyAPIURL)];
|
||||
|
||||
BITHockeyLog(@"INFO: API Server Call: %@, calling iOS with %@", hockeyAPIURL, iOSUpdateURL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user