From ecc804ca4be2a44fa9e6923c1d5626ca4c29841b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20B=C3=B6ttcher?= Date: Fri, 21 Jan 2022 13:48:01 +0100 Subject: [PATCH] animate switching off homeviews selection mode if only cell content is changed --- .../ViewControllers/HomeView/HomeViewController+Loading.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Signal/src/ViewControllers/HomeView/HomeViewController+Loading.swift b/Signal/src/ViewControllers/HomeView/HomeViewController+Loading.swift index e9062a4390..c0c1924876 100644 --- a/Signal/src/ViewControllers/HomeView/HomeViewController+Loading.swift +++ b/Signal/src/ViewControllers/HomeView/HomeViewController+Loading.swift @@ -175,6 +175,9 @@ extension HomeViewController { tableView.insertRows(at: [newIndexPath], with: rowAnimation) } case .update(let oldIndexPath): + if tableView.isEditing && !viewState.multiSelectState.isActive { + checkAndSetTableUpdates() + } let tds = tableView.dataSource as? HVTableDataSource if tds == nil || !tds!.updateVisibleCellContent(at: oldIndexPath, for: tableView) { checkAndSetTableUpdates()