From aa4345f9c187253937c363edde20341d1b718fa0 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Mon, 14 May 2018 11:47:13 -0400 Subject: [PATCH] Fix edge cases in home view. --- Signal/src/ViewControllers/HomeView/HomeViewController.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Signal/src/ViewControllers/HomeView/HomeViewController.m b/Signal/src/ViewControllers/HomeView/HomeViewController.m index 6b4b7cfb7..9b3b6d81c 100644 --- a/Signal/src/ViewControllers/HomeView/HomeViewController.m +++ b/Signal/src/ViewControllers/HomeView/HomeViewController.m @@ -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; }