Fixes crash on launch for unregistered users who updated.

pull/1/head
Frederic Jacobs 9 years ago
parent a4014c6ad3
commit 4c96ea1c91

@ -60,7 +60,7 @@
[self blockingPushRegistration];
}
if (VOIPRegistration) {
if (VOIPRegistration && [TSAccountManager isRegistered]) {
[PushManager.sharedManager registrationAndRedPhoneTokenRequestWithSuccess:^(NSData *pushToken, NSData *voipToken, NSString *signupToken) {
[TSAccountManager registerWithRedPhoneToken:signupToken
pushToken:pushToken

Loading…
Cancel
Save