Removed un-needed try statement.

pull/26/head
Mikunj 5 years ago
parent fe034be749
commit 763ecefca0

@ -1418,12 +1418,10 @@ static NSTimeInterval launchStartedAt;
NSArray *messages = (NSArray *)notification.userInfo[@"messages"];
for (SSKProtoEnvelope *envelope in messages) {
OWSLogInfo(@"[Loki] Received messages from long polling");
@try {
NSData *envelopeData = envelope.serializedDataIgnoringErrors;
if (envelopeData != nil) {
[SSKEnvironment.shared.messageReceiver handleReceivedEnvelopeData:envelopeData];
}
} @catch (NSException *exception) {
NSData *envelopeData = envelope.serializedDataIgnoringErrors;
if (envelopeData != nil) {
[SSKEnvironment.shared.messageReceiver handleReceivedEnvelopeData:envelopeData];
} else {
OWSFailDebug(@"Failed to serialize envelope");
}
}

@ -3,6 +3,7 @@
//
import UIKit
import SignalServiceKit
@objc
public class AvatarImageView: UIImageView {

Loading…
Cancel
Save