diff --git a/js/script.js b/js/script.js index cfc43cf..7fd8788 100644 --- a/js/script.js +++ b/js/script.js @@ -124,7 +124,16 @@ function changeSelectedConversation(item) { var peerListBuf = ""; $.each(jsondata['phonelist'], function(id, val) { - peerListBuf += '
  • ' + val + '
  • '; + var fn, peerLabel; + if (typeof jsondata['contacts'][val] == 'undefined') { + fn = ''; + peerLabel = val; + } + else { + fn = jsondata['contacts'][val]; + peerLabel = fn; + } + peerListBuf += '
  • ' + peerLabel + '
  • '; }); $('#app-mailbox-peers ul').html(peerListBuf);