Enable verification state sync.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-06-19 19:46:28 -04:00
parent 5110c5892d
commit 07bec72f61

View File

@ -536,28 +536,12 @@ NSString *const kNSNotificationName_IdentityStateDidChange = @"kNSNotificationNa
});
}
- (BOOL)isSyncEnabled
{
// Feature Flag
//
// Don't transmit or process verification state sync messages
// until desktop is ready.
//
// TODO: Remove.
return NO;
}
- (void)sendSyncVerificationStateMessage:(OWSVerificationStateSyncMessage *)message
{
OWSAssert(message);
OWSAssert(message.recipientIds.count > 0);
OWSAssert([NSThread isMainThread]);
if (![self isSyncEnabled]) {
DDLogInfo(@"Skipping outgoing sync message.");
return;
}
[self.messageSender sendMessage:message
success:^{
DDLogInfo(@"%@ Successfully sent verification state sync message", self.tag);
@ -646,11 +630,6 @@ NSString *const kNSNotificationName_IdentityStateDidChange = @"kNSNotificationNa
return;
}
if (![self isSyncEnabled]) {
DDLogInfo(@"Ignoring incoming sync message.");
return;
}
@synchronized(self)
{
OWSRecipientIdentity *_Nullable recipientIdentity = [OWSRecipientIdentity fetchObjectWithUniqueID:recipientId];