mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-23 06:13:09 +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 = formatConversation(jsondata)[1];
|
||||||
conversationBuf += '<div class="msg-endtag"></div>';
|
conversationBuf += '<div class="msg-endtag"></div>';
|
||||||
if (typeof jsondata['contactName'] == 'undefined') {
|
if (typeof jsondata['contactName'] == 'undefined' || jsondata['contactName'] == '') {
|
||||||
$('#ocsms-phone-label').html(phoneNumberLabel);
|
$('#ocsms-phone-label').html(phoneNumberLabel);
|
||||||
curContactName = phoneNumberLabel;
|
curContactName = phoneNumberLabel;
|
||||||
$('#ocsms-phone-opt-number').html('');
|
$('#ocsms-phone-opt-number').html('');
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
<div id="app-content-header" style="display: none;">
|
<div id="app-content-header" style="display: none;">
|
||||||
<div id="ocsms-phone-label"></div>
|
<div id="ocsms-phone-label"></div>
|
||||||
<div id="ocsms-phone-opt-number"></div>
|
<div id="ocsms-phone-opt-number"></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="app-content-wrapper">
|
<div id="app-content-wrapper">
|
||||||
<div id="ocsms-empty-conversation">Please choose a conversation on the left menu</div>
|
<div id="ocsms-empty-conversation">Please choose a conversation on the left menu</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user