IOS-1106 fixes: non-empty CC and BCC cells shrinked
authorbuff <andreas@pep-project.org>
Fri, 20 Jul 2018 12:18:56 +0200
changeset 554707be26a80b79
parent 5546 3eacce8585b2
child 5548 33fd567ebc4b
IOS-1106 fixes: non-empty CC and BCC cells shrinked
pEpForiOS/UI/Compose/ComposeTableViewController.swift
     1.1 --- a/pEpForiOS/UI/Compose/ComposeTableViewController.swift	Fri Jul 20 11:31:56 2018 +0200
     1.2 +++ b/pEpForiOS/UI/Compose/ComposeTableViewController.swift	Fri Jul 20 12:18:56 2018 +0200
     1.3 @@ -129,7 +129,7 @@
     1.4      private func updateInitialContent(recipientCell: RecipientCell) {
     1.5          guard let fm = recipientCell.fieldModel else {
     1.6              Log.shared.errorAndCrash(component: #function,
     1.7 -                                     errorString: "Is it OK to have no model?")
     1.8 +                                     errorString: "No model")
     1.9              return
    1.10          }
    1.11          guard let om = originalMessage else {
    1.12 @@ -150,6 +150,10 @@
    1.13          for id in result {
    1.14              recipientCell.addIdentity(id)
    1.15          }
    1.16 +        if result.count > 0 && ( fm.type == .cc || fm.type == .bcc) {
    1.17 +            // CC and/or BCC has been set. Show it to the user
    1.18 +            ccEnabled = true
    1.19 +        }
    1.20      }
    1.21  
    1.22      private func setFirstResponder() {