From a70bd3307ddcd3582290def7e673e0996bb43237 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Thu, 3 Aug 2017 13:16:45 -0400 Subject: [PATCH] Show threads if possible. // FREEBIE --- Signal/src/ViewControllers/SignalsViewController.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Signal/src/ViewControllers/SignalsViewController.m b/Signal/src/ViewControllers/SignalsViewController.m index 24c87229c4..5b271e0016 100644 --- a/Signal/src/ViewControllers/SignalsViewController.m +++ b/Signal/src/ViewControllers/SignalsViewController.m @@ -26,6 +26,7 @@ #import #import #import +#import #import #import @@ -728,8 +729,8 @@ typedef NS_ENUM(NSInteger, CellState) { kArchiveState, kInboxState }; keyboardOnViewAppearing:(BOOL)keyboardOnViewAppearing callOnViewAppearing:(BOOL)callOnViewAppearing { - // TODO: Do this synchronously if we're already on the main thread. - dispatch_async(dispatch_get_main_queue(), ^{ + // We do this synchronously if we're already on the main thread. + DispatchMainThreadSafe(^{ MessagesViewController *mvc = [[MessagesViewController alloc] initWithNibName:@"MessagesViewController" bundle:nil]; [mvc configureForThread:thread