Only show experience upgrades when the app becomes active

This commit is contained in:
Nora Trapp 2020-01-24 18:30:54 -08:00
parent 72e5c3bfea
commit bdfc5ee5da

View File

@ -756,7 +756,7 @@ NSString *const kArchiveButtonPseudoGroup = @"kArchiveButtonPseudoGroup";
{
[super viewDidAppear:animated];
if (![ExperienceUpgradeManager presentNextFromViewController:self]) {
if (!self.hasEverAppeared && ![ExperienceUpgradeManager presentNextFromViewController:self]) {
[OWSActionSheets showIOSUpgradeNagIfNecessary];
}
@ -1183,6 +1183,10 @@ NSString *const kArchiveButtonPseudoGroup = @"kArchiveButtonPseudoGroup";
- (void)applicationDidBecomeActive:(NSNotification *)notification
{
[self updateShouldObserveDBModifications];
if (![ExperienceUpgradeManager presentNextFromViewController:self]) {
[OWSActionSheets showIOSUpgradeNagIfNecessary];
}
}
- (void)applicationWillResignActive:(NSNotification *)notification