Clean up ahead of PR.

pull/1/head
Matthew Chen 7 years ago
parent fe9a61117c
commit 21ab670fc9

@ -373,6 +373,10 @@ NSString *const kArchivedConversationsReuseIdentifier = @"kArchivedConversations
- (void)showNewConversationView - (void)showNewConversationView
{ {
OWSAssertIsOnMainThread();
DDLogInfo(@"%@ %s", self.logTag, __PRETTY_FUNCTION__);
NewContactThreadViewController *viewController = [NewContactThreadViewController new]; NewContactThreadViewController *viewController = [NewContactThreadViewController new];
[self.contactsManager requestSystemContactsOnceWithCompletion:^(NSError *_Nullable error) { [self.contactsManager requestSystemContactsOnceWithCompletion:^(NSError *_Nullable error) {
@ -1050,11 +1054,9 @@ NSString *const kArchivedConversationsReuseIdentifier = @"kArchivedConversations
if (![[self.uiDatabaseConnection ext:TSThreadDatabaseViewExtensionName] hasChangesForGroup:self.currentGrouping if (![[self.uiDatabaseConnection ext:TSThreadDatabaseViewExtensionName] hasChangesForGroup:self.currentGrouping
inNotifications:notifications]) { inNotifications:notifications]) {
[self.uiDatabaseConnection readWithBlock:^(YapDatabaseReadTransaction *transaction) { [self.uiDatabaseConnection readWithBlock:^(YapDatabaseReadTransaction *transaction) {
[self.self.threadMappings updateWithTransaction:transaction]; [self.threadMappings updateWithTransaction:transaction];
}]; }];
[self checkIfEmptyView]; [self checkIfEmptyView];
self.threadMappings = [[YapDatabaseViewMappings alloc] initWithGroups:@[ self.currentGrouping ]
view:TSThreadDatabaseViewExtensionName];
return; return;
} }

@ -3,7 +3,6 @@
// //
#import "ShowGroupMembersViewController.h" #import "ShowGroupMembersViewController.h"
#import "HomeViewController.h"
#import "Signal-Swift.h" #import "Signal-Swift.h"
#import "SignalApp.h" #import "SignalApp.h"
#import "ViewControllerUtils.h" #import "ViewControllerUtils.h"

@ -211,9 +211,12 @@
keyboardOnViewAppearing:(BOOL)keyboardOnViewAppearing keyboardOnViewAppearing:(BOOL)keyboardOnViewAppearing
callOnViewAppearing:(BOOL)callOnViewAppearing callOnViewAppearing:(BOOL)callOnViewAppearing
{ {
OWSAssertIsOnMainThread();
// At most one. // At most one.
OWSAssert(!keyboardOnViewAppearing || !callOnViewAppearing); OWSAssert(!keyboardOnViewAppearing || !callOnViewAppearing);
DDLogInfo(@"%@ %s", self.logTag, __PRETTY_FUNCTION__);
if (!thread) { if (!thread) {
OWSFail(@"%@ Can't present nil thread.", self.logTag); OWSFail(@"%@ Can't present nil thread.", self.logTag);
return; return;

@ -3,7 +3,6 @@
// //
#import "ViewControllerUtils.h" #import "ViewControllerUtils.h"
#import "HomeViewController.h"
#import "NSString+OWS.h" #import "NSString+OWS.h"
#import "PhoneNumber.h" #import "PhoneNumber.h"
#import <AVFoundation/AVFoundation.h> #import <AVFoundation/AVFoundation.h>

Loading…
Cancel
Save