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:
+1
-1
@@ -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('');
|
||||
|
||||
Reference in New Issue
Block a user