Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #10909 from leob2g/Bug_890448_wrong_info_is_shown_…
Browse files Browse the repository at this point in the history
…when_receiving_second_call

Bug 890448 - [Dialer] When receiving second call that has withheld number, shows contact information (not withheld number token) r=etienne, a=leo+
  • Loading branch information
crh0716 committed Jul 15, 2013
2 parents 3732f35 + e15bd92 commit 5a0e6f6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/communications/dialer/js/oncall.js
Expand Up @@ -430,7 +430,13 @@ var OnCallHandler = (function onCallHandler() {

function handleCallWaiting(call) {
LazyL10n.get(function localized(_) {
var number = call.number || _('withheld-number');
var number = call.number;

if (!number) {
CallScreen.incomingNumber.textContent = _('withheld-number');
return;
}

Contacts.findByNumber(number, function lookupContact(contact) {
if (contact && contact.name) {
CallScreen.incomingNumber.textContent = contact.name;
Expand Down

0 comments on commit 5a0e6f6

Please sign in to comment.