- Also addresses a typo where the cipher key was checked to exist twice.
pull/1/head
Frederic Jacobs 10 years ago
parent c1a2f006be
commit d4e7096e83

@ -101,7 +101,6 @@
}
}
+(BOOL)wasRedPhoneRegistered{
BOOL hasLocalNumber = [UICKeyChainStore stringForKey:LOCAL_NUMBER_KEY]!=nil;
BOOL hasPassKey = [UICKeyChainStore stringForKey:SAVED_PASSWORD_KEY]!=nil;
@ -113,7 +112,7 @@
BOOL registered = [[NSUserDefaults.standardUserDefaults objectForKey:@"isRegistered"] boolValue];
return registered && hasLocalNumber && hasPassKey && hasSignaling
&& hasCipherKey && hasCipherKey && hasZIDKey && hasSignalingExtra;
&& hasCipherKey && hasZIDKey && hasSignalingExtra;
}
+ (void)migrateKeyingStorageToVersion2Dot0{

@ -355,9 +355,11 @@ typedef enum : NSUInteger {
self.navController = (APNavigationController*)self.navigationController;
if(!isGroupConversation) {
if([self canCall]) {
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[[UIImage imageNamed:@"btnPhone--white"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] style:UIBarButtonItemStylePlain target:self action:@selector(callAction)];
self.navigationItem.rightBarButtonItem.imageInsets = UIEdgeInsetsMake(0, -10, 0, 10);
} else if(!_thread.isGroupThread) {
self.navigationItem.rightBarButtonItem = nil;
}
[self hideInputIfNeeded];

Loading…
Cancel
Save