parent
9587aab37b
commit
2418baec15
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -48,6 +48,8 @@ typedef NS_ENUM(NSUInteger, OWSAnalyticsSeverity) {
|
|||
|
||||
+ (void)appLaunchDidComplete;
|
||||
|
||||
+ (long)orderOfMagnitudeOf:(long)value;
|
||||
|
||||
@end
|
||||
|
||||
typedef NSDictionary<NSString *, id> *_Nonnull (^OWSProdAssertParametersBlock)();
|
||||
|
|
|
@ -12,11 +12,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
|
||||
@end
|
||||
|
||||
@interface OWSAnalytics (Test)
|
||||
|
||||
+ (long)orderOfMagnitudeOf:(long)value;
|
||||
|
||||
@end
|
||||
#pragma mark -
|
||||
|
||||
@implementation OWSAnalyticsTests
|
||||
|
||||
|
|
Loading…
Reference in New Issue