Respond to CR.

pull/1/head
Matthew Chen 7 years ago
parent 00d79900e4
commit 8c8b3a95b8

@ -43,7 +43,7 @@ extern uint32_t const OWSDevicePrimaryDeviceId;
* This will create missing devices, update existing devices, and delete stale devices.
* @param devices Removes any existing devices, replacing them with `devices`
*
* Returns YET if any devices were added or removed.
* Returns YES if any devices were added or removed.
*/
+ (BOOL)replaceAll:(NSArray<OWSDevice *> *)devices;

@ -933,6 +933,9 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
// Consume an attempt.
messageSend.remainingAttempts = messageSend.remainingAttempts - 1;
// We need to disable UD for sync messages before we build the device messages,
// since we don't want to build a device message for the local device in the
// non-UD auth case.
if ([message isKindOfClass:[OWSOutgoingSyncMessage class]]
&& ![message isKindOfClass:[OWSOutgoingSentMessageTranscript class]]) {
[messageSend disableUD];

Loading…
Cancel
Save