pEpForiOS/UI/EmailDisplay/EmailListViewController.swift
changeset 1693 c4db2ce1f89b
parent 1692 13af947e3b63
child 1694 898bb5eaa391
     1.1 --- a/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Tue Feb 14 12:43:53 2017 +0100
     1.2 +++ b/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Tue Feb 14 12:43:54 2017 +0100
     1.3 @@ -385,16 +385,11 @@
     1.4                          tableView.reloadData()
     1.5                      }
     1.6                  } else if msg.isGhost {
     1.7 -                    var found = false
     1.8                      if let cell = cellsByMessageID.object(forKey: msg.uuid as NSString) {
     1.9                          if let ip = tableView.indexPath(for: cell) {
    1.10 -                            found = true
    1.11                              tableView.deleteRows(at: [ip], with: .automatic)
    1.12                          }
    1.13                      }
    1.14 -                    if !found {
    1.15 -                        tableView.reloadData()
    1.16 -                    }
    1.17                  } else {
    1.18                      // other flags than delete must have been changed
    1.19                      if let cell = cellsByMessageID.object(forKey: msg.uuid as NSString) {