Merge branch 'mkirk/archive-stack' into release/2.30.2

pull/1/head
Matthew Chen 7 years ago
commit 6104fb6753

@ -1207,13 +1207,16 @@ NSString *const kArchivedConversationsReuseIdentifier = @"kArchivedConversations
return; return;
} }
// We do this synchronously if we're already on the main thread.
DispatchMainThreadSafe(^{ DispatchMainThreadSafe(^{
ConversationViewController *conversationVC = [ConversationViewController new]; ConversationViewController *conversationVC = [ConversationViewController new];
[conversationVC configureForThread:thread action:action focusMessageId:focusMessageId]; [conversationVC configureForThread:thread action:action focusMessageId:focusMessageId];
self.lastThread = thread; self.lastThread = thread;
[self.navigationController setViewControllers:@[ self, conversationVC ] animated:isAnimated]; if (self.homeViewMode == HomeViewMode_Archive) {
[self.navigationController pushViewController:conversationVC animated:isAnimated];
} else {
[self.navigationController setViewControllers:@[ self, conversationVC ] animated:isAnimated];
}
}); });
} }

Loading…
Cancel
Save