Sync block state for contacts.

pull/1/head
Matthew Chen 7 years ago
parent 742d4cabc2
commit b16a65a4cd

@ -7,6 +7,7 @@
#import "Cryptography.h"
#import "MIMETypeUtil.h"
#import "NSData+keyVersionByte.h"
#import "OWSBlockingManager.h"
#import "OWSDisappearingMessagesConfiguration.h"
#import "OWSRecipientIdentity.h"
#import "OWSSignalServiceProtos.pb.h"
@ -63,6 +64,10 @@ NS_ASSUME_NONNULL_BEGIN
}
}
if ([OWSBlockingManager.sharedManager isRecipientIdBlocked:signalAccount.recipientId]) {
[contactBuilder setBlocked:YES];
}
NSData *contactData = [[contactBuilder build] data];
uint32_t contactDataLength = (uint32_t)contactData.length;

Loading…
Cancel
Save