diff options
-rw-r--r-- | Juick/AppDelegate.m | 7 | ||||
-rw-r--r-- | Juick/Supporting Files/Juick-Info.plist | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m index 4cd7f2d..b38168c 100644 --- a/Juick/AppDelegate.m +++ b/Juick/AppDelegate.m @@ -16,6 +16,7 @@ #import "User.h" #import "DeviceRegistration.h" #import "NewPostViewController.h" +#import "DiscoverViewController.h" @interface AppDelegate() -(void) parseNotificationPayload:(NSDictionary *)userInfo; @@ -82,7 +83,11 @@ NSDictionary *userInfo = response.notification.request.content.userInfo; NSLog(@"User Info : %@", userInfo); [self parseNotificationPayload:userInfo]; - [self.window.rootViewController performSegueWithIdentifier:@"threadSegue" sender:self.window.rootViewController]; + UINavigationController *main = (UINavigationController *)self.window.rootViewController; + [main popToRootViewControllerAnimated:YES]; + if ([main.visibleViewController isKindOfClass:[DiscoverViewController class]]) { + [main.visibleViewController performSegueWithIdentifier:@"threadViewSegue" sender:main.visibleViewController]; + } completionHandler(); } diff --git a/Juick/Supporting Files/Juick-Info.plist b/Juick/Supporting Files/Juick-Info.plist index 16b325a..011cb90 100644 --- a/Juick/Supporting Files/Juick-Info.plist +++ b/Juick/Supporting Files/Juick-Info.plist @@ -21,7 +21,7 @@ <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> - <string>1.0.39</string> + <string>1.0.41</string> <key>ITSAppUsesNonExemptEncryption</key> <false/> <key>LSApplicationCategoryType</key> |