IOS-1368 code improve IOS-1368
authorXavier Algarra <xavier@pep-project.org>
Thu, 04 Jul 2019 15:38:08 +0200
branchIOS-1368
changeset 9303fe87d91e2615
parent 9302 94e47f560bc6
child 9357 86da2487245f
IOS-1368 code improve
pEpForiOS/UI/EmailDisplayList/EmailListViewController.swift
     1.1 --- a/pEpForiOS/UI/EmailDisplayList/EmailListViewController.swift	Thu Jul 04 15:35:35 2019 +0200
     1.2 +++ b/pEpForiOS/UI/EmailDisplayList/EmailListViewController.swift	Thu Jul 04 15:38:08 2019 +0200
     1.3 @@ -925,12 +925,11 @@
     1.4                  Log.shared.errorAndCrash("Lost MySelf")
     1.5                  return
     1.6              }
     1.7 +            cell.isSeen = !seenState
     1.8              if seenState {
     1.9                  me.model?.markSelectedAsUnread(indexPaths: [indexPath])
    1.10 -                cell.isSeen = false
    1.11              } else {
    1.12                  me.model?.markSelectedAsRead(indexPaths: [indexPath])
    1.13 -                cell.isSeen = true
    1.14              }
    1.15          }
    1.16      }