Created
July 31, 2015 16:07
-
-
Save mafellows/9b78449a91e5b2668c93 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ([PFUser currentUser]) { | |
PFInstallation *currentInstallation = [PFInstallation currentInstallation]; | |
NSString *userId = currentInstallation[@"installationUser"]; | |
if (![userId isEqualToString:[[PFUser currentUser] objectId]]) { | |
currentInstallation[@"installationUser"] = [[PFUser currentUser] objectId]; | |
[currentInstallation saveEventually]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment