|
|
@ -73,8 +73,6 @@ NSString *const kNSNotificationName_IdentityStateDidChange = @"kNSNotificationNa
|
|
|
|
_dbConnection = primaryStorage.newDatabaseConnection;
|
|
|
|
_dbConnection = primaryStorage.newDatabaseConnection;
|
|
|
|
self.dbConnection.objectCacheEnabled = NO;
|
|
|
|
self.dbConnection.objectCacheEnabled = NO;
|
|
|
|
|
|
|
|
|
|
|
|
[self observeNotifications];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return self;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -85,14 +83,6 @@ NSString *const kNSNotificationName_IdentityStateDidChange = @"kNSNotificationNa
|
|
|
|
|
|
|
|
|
|
|
|
#pragma mark -
|
|
|
|
#pragma mark -
|
|
|
|
|
|
|
|
|
|
|
|
- (void)observeNotifications
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self
|
|
|
|
|
|
|
|
selector:@selector(applicationDidBecomeActive:)
|
|
|
|
|
|
|
|
name:UIApplicationDidBecomeActiveNotification
|
|
|
|
|
|
|
|
object:nil];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- (void)generateNewIdentityKeyPair
|
|
|
|
- (void)generateNewIdentityKeyPair
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ECKeyPair *keyPair = [Curve25519 generateKeyPair];
|
|
|
|
ECKeyPair *keyPair = [Curve25519 generateKeyPair];
|
|
|
|