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];
ConversationConfigurationSyncOperation *operation = dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[[ConversationConfigurationSyncOperation alloc] initWithThread:self.thread]; ConversationConfigurationSyncOperation *operation =
OWSAssert(operation.isReady); [[ConversationConfigurationSyncOperation alloc] initWithThread:self.thread];
[operation start]; OWSAssert(operation.isReady);
[operation start];
});
[self dismissViewControllerAnimated:YES completion:nil]; [self dismissViewControllerAnimated:YES completion:nil];
} }

Loading…
Cancel
Save