|
|
@ -88,8 +88,8 @@ uint32_t const OWSDevicePrimaryDeviceId = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*success = NO;
|
|
|
|
*success = NO;
|
|
|
|
*error = OWSErrorWithCodeDescription(OWSErrorCodeFailedToDecodeJson,
|
|
|
|
DDLogError(@"%@ unable to decode date from %@", self.tag, value);
|
|
|
|
[NSString stringWithFormat:@"unable to decode date from %@", value]);
|
|
|
|
*error = OWSErrorWithCodeDescription(OWSErrorCodeFailedToDecodeJson, @"Unable to decode date from %@");
|
|
|
|
return nil;
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
reverseBlock:^id(id value, BOOL *success, NSError **error) {
|
|
|
|
reverseBlock:^id(id value, BOOL *success, NSError **error) {
|
|
|
@ -101,8 +101,8 @@ uint32_t const OWSDevicePrimaryDeviceId = 1;
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*error = OWSErrorWithCodeDescription(OWSErrorCodeFailedToEncodeJson,
|
|
|
|
DDLogError(@"%@ unable to encode date from %@", self.tag, value);
|
|
|
|
[NSString stringWithFormat:@"unable to encode date from %@", value]);
|
|
|
|
*error = OWSErrorWithCodeDescription(OWSErrorCodeFailedToEncodeJson, @"Unable to encode date");
|
|
|
|
*success = NO;
|
|
|
|
*success = NO;
|
|
|
|
return nil;
|
|
|
|
return nil;
|
|
|
|
}];
|
|
|
|
}];
|
|
|
@ -178,6 +178,18 @@ uint32_t const OWSDevicePrimaryDeviceId = 1;
|
|
|
|
return self.deviceId == device.deviceId;
|
|
|
|
return self.deviceId == device.deviceId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma mark - Logging
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ (NSString *)tag
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return [NSString stringWithFormat:@"[%@]", self.class];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- (NSString *)tag
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return self.class.tag;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|
|