sync configuration off main thread

pull/1/head
Michael Kirk 7 years ago
parent 8a43435dfc
commit 3530bf4fe0

@ -1271,10 +1271,12 @@ const CGFloat kIconViewLength = 24;
[self updateTableContents]; [self updateTableContents];
[self.conversationSettingsViewDelegate conversationColorWasUpdated]; [self.conversationSettingsViewDelegate conversationColorWasUpdated];
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
ConversationConfigurationSyncOperation *operation = ConversationConfigurationSyncOperation *operation =
[[ConversationConfigurationSyncOperation alloc] initWithThread:self.thread]; [[ConversationConfigurationSyncOperation alloc] initWithThread:self.thread];
OWSAssert(operation.isReady); OWSAssert(operation.isReady);
[operation start]; [operation start];
});
[self dismissViewControllerAnimated:YES completion:nil]; [self dismissViewControllerAnimated:YES completion:nil];
} }

Loading…
Cancel
Save