mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Use default quality queue to populate ip to country map
This commit is contained in:
parent
757f14c338
commit
4506dc55de
1 changed files with 1 additions and 2 deletions
|
@ -154,7 +154,7 @@ final class HomeVC : BaseVC, UITableViewDataSource, UITableViewDelegate, UIScrol
|
||||||
appDelegate.startRSSFeedPollersIfNeeded()
|
appDelegate.startRSSFeedPollersIfNeeded()
|
||||||
}
|
}
|
||||||
// Populate onion request path countries cache
|
// Populate onion request path countries cache
|
||||||
DispatchQueue.global(qos: .userInitiated).async {
|
DispatchQueue.global(qos: .default).async {
|
||||||
let _ = IP2Country.shared.populateCacheIfNeeded()
|
let _ = IP2Country.shared.populateCacheIfNeeded()
|
||||||
}
|
}
|
||||||
// Do initial update
|
// Do initial update
|
||||||
|
@ -368,7 +368,6 @@ final class HomeVC : BaseVC, UITableViewDataSource, UITableViewDelegate, UIScrol
|
||||||
let delete = UITableViewRowAction(style: .destructive, title: NSLocalizedString("Delete", comment: "")) { [weak self] action, indexPath in
|
let delete = UITableViewRowAction(style: .destructive, title: NSLocalizedString("Delete", comment: "")) { [weak self] action, indexPath in
|
||||||
let alert = UIAlertController(title: NSLocalizedString("CONVERSATION_DELETE_CONFIRMATION_ALERT_TITLE", comment: ""), message: NSLocalizedString("CONVERSATION_DELETE_CONFIRMATION_ALERT_MESSAGE", comment: ""), preferredStyle: .alert)
|
let alert = UIAlertController(title: NSLocalizedString("CONVERSATION_DELETE_CONFIRMATION_ALERT_TITLE", comment: ""), message: NSLocalizedString("CONVERSATION_DELETE_CONFIRMATION_ALERT_MESSAGE", comment: ""), preferredStyle: .alert)
|
||||||
alert.addAction(UIAlertAction(title: NSLocalizedString("TXT_DELETE_TITLE", comment: ""), style: .destructive) { _ in
|
alert.addAction(UIAlertAction(title: NSLocalizedString("TXT_DELETE_TITLE", comment: ""), style: .destructive) { _ in
|
||||||
guard let self = self else { return }
|
|
||||||
try! Storage.writeSync { transaction in
|
try! Storage.writeSync { transaction in
|
||||||
if let publicChat = publicChat {
|
if let publicChat = publicChat {
|
||||||
var messageIDs: Set<String> = []
|
var messageIDs: Set<String> = []
|
||||||
|
|
Loading…
Reference in a new issue