From 4506dc55dedbe2748939004a7196664c449d5b0f Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Thu, 11 Jun 2020 18:05:01 +1000 Subject: [PATCH] Use default quality queue to populate ip to country map --- Signal/src/Loki/View Controllers/HomeVC.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Signal/src/Loki/View Controllers/HomeVC.swift b/Signal/src/Loki/View Controllers/HomeVC.swift index a8e502017..905b0e7c5 100644 --- a/Signal/src/Loki/View Controllers/HomeVC.swift +++ b/Signal/src/Loki/View Controllers/HomeVC.swift @@ -154,7 +154,7 @@ final class HomeVC : BaseVC, UITableViewDataSource, UITableViewDelegate, UIScrol appDelegate.startRSSFeedPollersIfNeeded() } // Populate onion request path countries cache - DispatchQueue.global(qos: .userInitiated).async { + DispatchQueue.global(qos: .default).async { let _ = IP2Country.shared.populateCacheIfNeeded() } // 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 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 - guard let self = self else { return } try! Storage.writeSync { transaction in if let publicChat = publicChat { var messageIDs: Set = []