mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Fixed "install" button in the mandatory update alert not working and forcing users to use the "show" button and then install from the update view instead
This commit is contained in:
@@ -513,8 +513,8 @@ typedef NS_ENUM(NSInteger, BITUpdateAlertViewTag) {
|
|||||||
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:BITHockeyLocalizedString(@"UpdateAvailable")
|
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:BITHockeyLocalizedString(@"UpdateAvailable")
|
||||||
message:[NSString stringWithFormat:BITHockeyLocalizedString(@"UpdateAlertMandatoryTextWithAppVersion"), [self.newestAppVersion nameAndVersionString]]
|
message:[NSString stringWithFormat:BITHockeyLocalizedString(@"UpdateAlertMandatoryTextWithAppVersion"), [self.newestAppVersion nameAndVersionString]]
|
||||||
delegate:self
|
delegate:self
|
||||||
cancelButtonTitle:BITHockeyLocalizedString(@"UpdateInstall")
|
cancelButtonTitle:nil
|
||||||
otherButtonTitles:BITHockeyLocalizedString(@"UpdateShow"), nil
|
otherButtonTitles:BITHockeyLocalizedString(@"UpdateShow"), BITHockeyLocalizedString(@"UpdateInstall"), nil
|
||||||
];
|
];
|
||||||
[alertView setTag:BITUpdateAlertViewTagMandatoryUpdate];
|
[alertView setTag:BITUpdateAlertViewTagMandatoryUpdate];
|
||||||
[alertView show];
|
[alertView show];
|
||||||
|
|||||||
Reference in New Issue
Block a user