Merge branch 'charlesmchen/homeViewFixes'

pull/1/head
Matthew Chen 8 years ago
commit 726da0ca97

@ -376,6 +376,10 @@ NSString *const kArchivedConversationsReuseIdentifier = @"kArchivedConversations
{ {
NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint:location]; NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint:location];
if ([self isIndexPathForArchivedConversations:indexPath]) {
return nil;
}
if (indexPath) { if (indexPath) {
[previewingContext setSourceRect:[self.tableView rectForRowAtIndexPath:indexPath]]; [previewingContext setSourceRect:[self.tableView rectForRowAtIndexPath:indexPath]];
@ -831,6 +835,10 @@ NSString *const kArchivedConversationsReuseIdentifier = @"kArchivedConversations
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
{ {
if ([self isIndexPathForArchivedConversations:indexPath]) {
return NO;
}
return YES; return YES;
} }

Loading…
Cancel
Save