mozilla-b2g/gaia — pull request #8178 by gtorodelvalle (2013-02-18 16:41:27+00:00)
Title: Bug 832841 - [OPEN_] When save a contact which has no name in contacts, it shows abnormal in call log and in notification.(617001973097).

We use the same algorithm already used application-wide in the Communications app to decide which information to show about the calling number in the missed call notifications:
- If there is no contact associated to the calling number, we show the calling phone number.
- If there is a contact associated to the calling number and the contact has a name, we show the name of the contact.
- If there is a contact associated to the calling number and the contact does not have a name but has a company, we show the company of the contact.
- If there is a contact associated to the calling number and the contact does not have either a name or a company, we show the calling phone number.