Respond to CR.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-07-24 16:13:22 -04:00
parent 9587aab37b
commit 2418baec15
4 changed files with 5 additions and 7 deletions

View File

@ -125,7 +125,7 @@ EXTERNAL SOURCES:
:branch: signal-master
:git: https://github.com/WhisperSystems/JSQMessagesViewController.git
SignalServiceKit:
:path: "."
:path: .
SocketRocket:
:git: https://github.com/facebook/SocketRocket.git

View File

@ -408,7 +408,7 @@ NS_ASSUME_NONNULL_BEGIN
if (encryptedData.length > kMaxEncryptedDataLength) {
OWSProdErrorWParams(@"message_manager_error_oversize_message", ^{
return (@{
@"message_size" : @(encryptedData.length),
@"message_size" : @([OWSAnalytics orderOfMagnitudeOf:(long)encryptedData.length]),
});
});
completion(nil);

View File

@ -48,6 +48,8 @@ typedef NS_ENUM(NSUInteger, OWSAnalyticsSeverity) {
+ (void)appLaunchDidComplete;
+ (long)orderOfMagnitudeOf:(long)value;
@end
typedef NSDictionary<NSString *, id> *_Nonnull (^OWSProdAssertParametersBlock)();

View File

@ -12,11 +12,7 @@ NS_ASSUME_NONNULL_BEGIN
@end
@interface OWSAnalytics (Test)
+ (long)orderOfMagnitudeOf:(long)value;
@end
#pragma mark -
@implementation OWSAnalyticsTests