|
|
|
@ -1386,9 +1386,10 @@ static NSTimeInterval launchStartedAt;
|
|
|
|
|
{
|
|
|
|
|
if (self.poller == nil) {
|
|
|
|
|
NSString *userPublicKey = OWSIdentityManager.sharedManager.identityKeyPair.hexEncodedPublicKey;
|
|
|
|
|
if (userPublicKey == nil) { return; }
|
|
|
|
|
if (userPublicKey != nil) {
|
|
|
|
|
self.poller = [[LKPoller alloc] init];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
[self.poller startIfNeeded];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1398,9 +1399,10 @@ static NSTimeInterval launchStartedAt;
|
|
|
|
|
{
|
|
|
|
|
if (self.closedGroupPoller == nil) {
|
|
|
|
|
NSString *userPublicKey = OWSIdentityManager.sharedManager.identityKeyPair.hexEncodedPublicKey;
|
|
|
|
|
if (userPublicKey == nil) { return; }
|
|
|
|
|
if (userPublicKey != nil) {
|
|
|
|
|
self.closedGroupPoller = [[LKClosedGroupPoller alloc] init];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
[self.closedGroupPoller startIfNeeded];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|