diff options
author | Vitaly Takmazov | 2019-03-22 00:56:41 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-03-22 00:56:41 +0300 |
commit | 78412d188e8cf119046ee8b2344a07674ccf7f43 (patch) | |
tree | b97287947b07bc63a05fb4a8607ccc4bf19aa747 /Juick/ViewControllers/LoginViewController.m | |
parent | 5f4a09ec689cb04ce71b4eb7425936f04a70f6f4 (diff) |
Fix today feed
Diffstat (limited to 'Juick/ViewControllers/LoginViewController.m')
-rw-r--r-- | Juick/ViewControllers/LoginViewController.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Juick/ViewControllers/LoginViewController.m b/Juick/ViewControllers/LoginViewController.m index 1894b1c..898e59c 100644 --- a/Juick/ViewControllers/LoginViewController.m +++ b/Juick/ViewControllers/LoginViewController.m @@ -11,6 +11,8 @@ #import "AppDelegate.h" #import "APIClient.h" +NSString * const UserSignedInNotificationName = @"UserSignedIn"; + @interface LoginViewController() @property (nonatomic, assign) int paddingValue; @end @@ -57,6 +59,7 @@ - (void) doneSignIn { [[APIClient sharedClient] authenticate:^(User *user, NSError *error) { if (user) { + [[NSNotificationCenter defaultCenter] postNotificationName:UserSignedInNotificationName object:user]; [[AppDelegate shared] registerForRemoteNotifications]; CATransition* transition = [CATransition animation]; transition.duration = 0.3; |