Fix type declaration

// FREEBIE
pull/1/head
Michael Kirk 7 years ago
parent 1f63ce02a0
commit d1230abdc5

@ -437,7 +437,7 @@ NSString *const kTSOutgoingMessageSentRecipientAll = @"kTSOutgoingMessageSentRec
[builder setBody:self.body]; [builder setBody:self.body];
} else { } else {
OWSFail(@"%@ message body length too long.", self.logTag); OWSFail(@"%@ message body length too long.", self.logTag);
NSMutableString *truncatedBody = [self.body mutableCopy]; NSString *truncatedBody = self.body;
while ([truncatedBody lengthOfBytesUsingEncoding:NSUTF8StringEncoding] > kOversizeTextMessageSizeThreshold) { while ([truncatedBody lengthOfBytesUsingEncoding:NSUTF8StringEncoding] > kOversizeTextMessageSizeThreshold) {
DDLogError(@"%@ truncating body which is too long: %tu", DDLogError(@"%@ truncating body which is too long: %tu",
self.logTag, self.logTag,

Loading…
Cancel
Save