Closed
Bug 773867
Opened 12 years ago
Closed 12 years ago
Match the PreferDisplayName logic of TB
Categories
(SeaMonkey :: MailNews: Message Display, defect)
SeaMonkey
MailNews: Message Display
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: iannbugzilla, Assigned: iannbugzilla)
References
Details
Attachments
(1 file)
995 bytes,
patch
|
neil
:
review-
|
Details | Diff | Splinter Review |
When porting bug 474721 the logic of determining displayName was done differently to TB, we should probably match TB.
Attachment #642139 -
Flags: review?(neil)
Comment 1•12 years ago
|
||
Comment on attachment 642139 [details] [diff] [review] Match the logic Case 1: PreferDisplayName is false. In the old code, this allows us to get the header name, but if that turns out to be empty then we use the card name, while in the new code we always get the header name, but again if that turns out to be empty then we use the card name. Case 2: PreferDisplayName is true. In the old code we ignore the header, and so we always use the card name. In the new code, we get the header name, but then it turns out we didn't want it after all, and we end up using the card name. So both versions appear to be equivalent, but the original code is simpler.
Attachment #642139 -
Flags: review?(neil) → review-
(In reply to neil@parkwaycc.co.uk from comment #1) > Comment on attachment 642139 [details] [diff] [review] > Match the logic > > Case 1: PreferDisplayName is false. In the old code, this allows us to get > the header name, but if that turns out to be empty then we use the card > name, while in the new code we always get the header name, but again if that > turns out to be empty then we use the card name. > Case 2: PreferDisplayName is true. In the old code we ignore the header, and > so we always use the card name. In the new code, we get the header name, but > then it turns out we didn't want it after all, and we end up using the card > name. > So both versions appear to be equivalent, but the original code is simpler. Very true, I think I was looking at too many layered patches.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•