Streamline SignalRecipient.

pull/1/head
Matthew Chen 7 years ago
parent 9618fc16c5
commit 10b21d10e4

@ -32,8 +32,7 @@ NS_ASSUME_NONNULL_BEGIN
+ (SignalRecipient *)ensureRecipientExistsWithRegisteredRecipientId:(NSString *)recipientId + (SignalRecipient *)ensureRecipientExistsWithRegisteredRecipientId:(NSString *)recipientId
transaction:(YapDatabaseReadWriteTransaction *)transaction transaction:(YapDatabaseReadWriteTransaction *)transaction
{ {
SignalRecipient *recipient = SignalRecipient *recipient = [self ensureRecipientExistsWithRecipientId:recipientId transaction:transaction];
[self ensureRecipientExistsWithRegisteredRecipientId:recipient transaction:transaction];
if (recipient.mayBeUnregistered) { if (recipient.mayBeUnregistered) {
recipient.mayBeUnregistered = NO; recipient.mayBeUnregistered = NO;
[recipient saveWithTransaction:transaction]; [recipient saveWithTransaction:transaction];

Loading…
Cancel
Save