no message

This commit is contained in:
Giuseppe Nucifora 2016-05-02 10:43:35 +02:00
parent 0c37caed5c
commit 7f4757d9e0

View File

@ -131,8 +131,8 @@ static bool isFirstAccess = YES;
} }
- (void) setUser:(PNUser *)user { - (void) setUser:(PNUser *)user {
if (!_user) { if (!_user && user) {
_user = nil; _user = user;
[[NSNotificationCenter defaultCenter] postNotificationName:PNObjectLocalNotificationPNInstallationUserNew object:nil]; [[NSNotificationCenter defaultCenter] postNotificationName:PNObjectLocalNotificationPNInstallationUserNew object:nil];
} }
else if(_user.objID != user.objID) { else if(_user.objID != user.objID) {