mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
End select mode after hitting delete
// FREEBIE
This commit is contained in:
parent
6e3de94e99
commit
405edaa125
|
@ -482,6 +482,10 @@ public class MediaTileViewController: UICollectionViewController, MediaGalleryDa
|
|||
|
||||
@objc
|
||||
func didCancelSelect(_ sender: Any) {
|
||||
endSelectMode()
|
||||
}
|
||||
|
||||
func endSelectMode() {
|
||||
isInBatchSelectMode = false
|
||||
|
||||
guard let collectionView = self.collectionView else {
|
||||
|
@ -537,6 +541,7 @@ public class MediaTileViewController: UICollectionViewController, MediaGalleryDa
|
|||
|
||||
let deleteAction = UIAlertAction(title: confirmationTitle, style: .destructive) { _ in
|
||||
mediaGalleryDataSource.delete(items: items)
|
||||
self.endSelectMode()
|
||||
}
|
||||
|
||||
let actionSheet = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
|
||||
|
|
Loading…
Reference in a new issue