From 3530bf4fe049d72836b787554def4d7be4b05958 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Tue, 3 Jul 2018 20:31:26 -0600 Subject: [PATCH] sync configuration off main thread --- .../OWSConversationSettingsViewController.m | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Signal/src/ViewControllers/ThreadSettings/OWSConversationSettingsViewController.m b/Signal/src/ViewControllers/ThreadSettings/OWSConversationSettingsViewController.m index c5e1705cc..268fd8df7 100644 --- a/Signal/src/ViewControllers/ThreadSettings/OWSConversationSettingsViewController.m +++ b/Signal/src/ViewControllers/ThreadSettings/OWSConversationSettingsViewController.m @@ -1271,10 +1271,12 @@ const CGFloat kIconViewLength = 24; [self updateTableContents]; [self.conversationSettingsViewDelegate conversationColorWasUpdated]; - ConversationConfigurationSyncOperation *operation = - [[ConversationConfigurationSyncOperation alloc] initWithThread:self.thread]; - OWSAssert(operation.isReady); - [operation start]; + dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ + ConversationConfigurationSyncOperation *operation = + [[ConversationConfigurationSyncOperation alloc] initWithThread:self.thread]; + OWSAssert(operation.isReady); + [operation start]; + }); [self dismissViewControllerAnimated:YES completion:nil]; }