From ea1394225e451d81ff279676af8d51e371f99eb3 Mon Sep 17 00:00:00 2001 From: Morgan Pretty Date: Wed, 21 Aug 2024 14:53:00 +1000 Subject: [PATCH] Removed the incorrect swipe actions --- .../GlobalSearch/GlobalSearchViewController.swift | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Session/Home/GlobalSearch/GlobalSearchViewController.swift b/Session/Home/GlobalSearch/GlobalSearchViewController.swift index c102046a5..3d3ad0090 100644 --- a/Session/Home/GlobalSearch/GlobalSearchViewController.swift +++ b/Session/Home/GlobalSearch/GlobalSearchViewController.swift @@ -489,19 +489,4 @@ extension GlobalSearchViewController { return cell } } - - public func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? { - guard self.searchResultSet.state == .defaultContacts else { return nil } - - return UIContextualAction.configuration( - for: UIContextualAction.generateSwipeActions( - [ .block, .delete ], - for: .trailing, - indexPath: indexPath, - tableView: tableView, - threadViewModel: self.searchResultSet.data[indexPath.section].elements[indexPath.row], - viewController: self - ) - ) - } }