Handle completely skipped message sends.

pull/1/head
Matthew Chen 7 years ago
parent e63014ccf3
commit e7eaa7945d

@ -501,6 +501,12 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
}];
}
if (sendingRecipientIds.count < 1) {
// All recipients are already sent or can be skipped.
successHandler();
return;
}
NSError *error;
NSArray<SignalRecipient *> *recipients =
[self getRecipientsForRecipientIds:sendingRecipientIds.allObjects error:&error];

Loading…
Cancel
Save