Fix edge cases in home view.

This commit is contained in:
Matthew Chen 2018-05-14 11:47:13 -04:00
parent 53fb8787fa
commit aa4345f9c1
1 changed files with 8 additions and 0 deletions

View File

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