fixed multidelete

This commit is contained in:
Nihaal Sharma committed 2026-07-06 14:11:00 +01:00
1 parent eb65849d3f
commit 042263fd9d
1 file changed
+11 -2
@@ -158,10 +158,19 @@ class EmojiPackListView: UITableViewController {
@objc func multiDelete() {
guard let selectedRows = self.tableView.indexPathsForSelectedRows else { return }
var packs: [EmojiPack] = []
for indexPath in selectedRows {
guard let pack = packFor(indexPath: indexPath) else { continue }
delete(indexPath)
guard let pack = packFor(indexPath: indexPath) else { return }
packs.append(pack)
}
guard !packs.isEmpty else { return }
for pack in packs {
self.emojiHoarder.removeEmojiPack(pack)
}
self.tableView.deleteRows(at: selectedRows, with: .automatic)
setEditing(false, animated: true)
}
func dup(_ indexPath: IndexPath) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.