Fix use of deprecated -[UIApplication openURL:].

Use -[UIApplication openURL:options:completionHandler:] with empty
second and third parameters.
This commit is contained in:
Igor Solomennikov 2022-01-29 16:33:54 -08:00
parent 2cbb155e34
commit ef2f9b3937

View File

@ -1,5 +1,5 @@
//
// Copyright (c) 2021 Open Whisper Systems. All rights reserved.
// Copyright (c) 2022 Open Whisper Systems. All rights reserved.
//
#import "Pastelog.h"
@ -304,7 +304,9 @@ typedef NS_ERROR_ENUM(PastelogErrorDomain, PastelogError) {
[UIApplication.sharedApplication
openURL:[NSURL
URLWithString:[[NSBundle mainBundle]
objectForInfoDictionaryKey:@"LOGS_URL"]]];
objectForInfoDictionaryKey:@"LOGS_URL"]]
options:@{ }
completionHandler:nil];
completion();
}]];