1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-20 04:43:04 +00:00

Fix condition when there isn't any contact associated with phone number

This commit is contained in:
Loic Blot
2014-10-13 17:41:24 +02:00
parent b974a946b0
commit e7e79b592e
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ function fetchConversation(phoneNumber) {
conversationBuf = formatConversation(jsondata)[1];
conversationBuf += '<div class="msg-endtag"></div>';
if (typeof jsondata['contactName'] == 'undefined') {
if (typeof jsondata['contactName'] == 'undefined' || jsondata['contactName'] == '') {
$('#ocsms-phone-label').html(phoneNumberLabel);
curContactName = phoneNumberLabel;
$('#ocsms-phone-opt-number').html('');