pEpForiOS/UI/EmailDisplay/EmailListViewController.swift
changeset 1650 33eba5b4f5f5
parent 1623 de640fc8295f
child 1664 7fa84db06f26
equal deleted inserted replaced
1649:e10ecf2d2ecb 1650:33eba5b4f5f5
   188         func action(action: UITableViewRowAction, indexPath: IndexPath) -> Void {
   188         func action(action: UITableViewRowAction, indexPath: IndexPath) -> Void {
   189             guard let message = cell.messageAt(indexPath: indexPath, config: self.config) else {
   189             guard let message = cell.messageAt(indexPath: indexPath, config: self.config) else {
   190                 return
   190                 return
   191             }
   191             }
   192 
   192 
   193             message.imapFlags?.deleted = true
   193             message.delete() // mark for deletion/trash
   194             message.save()
   194             message.save()
   195             self.tableView.reloadData()
   195             self.tableView.reloadData()
   196         }
   196         }
   197 
   197 
   198         return createRowAction(
   198         return createRowAction(