We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4124af commit ed63e0cCopy full SHA for ed63e0c
Chapters/MailApp/MailApp.md
@@ -469,11 +469,11 @@ MailReaderPresenter >> defaultLayout
469
As mentioned before, we assume that instances of `MailReaderPresenter` will be told to update themselves. `read:` is the message to tell them.
470
471
```
472
-MailReaderPresenter >> read: email
+MailReaderPresenter >> read: folderOrEmail
473
474
- email
475
- ifNil: [ self updateLayoutForNoEmail ]
476
- ifNotNil: [ self updateLayoutForEmail: email ]
+ (folderOrEmail isNotNil and: [ folderOrEmail isEmail ])
+ ifTrue: [ self updateLayoutForEmail: folderOrEmail ]
+ ifFalse: [ self updateLayoutForNoEmail ]
477
478
479
The method `read:` delegates to the methods that do the actual work.
0 commit comments