From 0cd07d130a718a3aab289eac3b986adf760fb336 Mon Sep 17 00:00:00 2001 From: "j.gonzalez" Date: Mon, 21 Oct 2019 10:46:17 +0100 Subject: [PATCH] fix problem send invitatio --- js/views/app_view.js | 26 +++++++++++++------------- js/views/import_contact_view.js | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/js/views/app_view.js b/js/views/app_view.js index 97b7ee8a5f..3765974a30 100644 --- a/js/views/app_view.js +++ b/js/views/app_view.js @@ -218,19 +218,19 @@ async openModalImport(typeUser){ const companyNumber = textsecure.storage.get('companyNumber', null); const xml = await getXmlFile(companyNumber); - const InvitationList = await getClientAdminCompany(companyNumber); - console.log(InvitationList.admins, "55555555555555") - if(xml && InvitationList){ - localStorage.setItem('InvitationList',JSON.stringify(InvitationList)); - if(typeUser === 'admin'){ - xml.InvitationList = InvitationList.admins - } - if(typeUser === 'kunde'){ - xml.InvitationList = InvitationList.clients - } - xml.type = typeUser; - } - const dialog = new Whisper.ModalImport({contact_data: xml}); + // const InvitationList = await getClientAdminCompany(companyNumber); + // console.log(InvitationList.admins, "55555555555555") + // if(xml && InvitationList){ + // localStorage.setItem('InvitationList',JSON.stringify(InvitationList)); + // if(typeUser === 'admin'){ + // xml.InvitationList = InvitationList.admins + // } + // if(typeUser === 'kunde'){ + // xml.InvitationList = InvitationList.clients + // } + // xml.type = typeUser; + // } + const dialog = new Whisper.ModalImport({contact_data: xml, type: typeUser}); dialog.$el.insertBefore(document.getElementsByClassName('network-status-container')[0]); }, }); diff --git a/js/views/import_contact_view.js b/js/views/import_contact_view.js index 45fcacd243..aec0e5bd3b 100644 --- a/js/views/import_contact_view.js +++ b/js/views/import_contact_view.js @@ -1413,7 +1413,6 @@ initialize(options) { if(options){ - console.log(options.contact_data, options, "contactsssssssssssssssss") if(options.contact_data !== undefined){ this.contactListXml = prepareDataXml(options.contact_data); @@ -1430,6 +1429,7 @@ } this.objectContact.push(tmpObj) } + console.log(options, "optionsssssssssssssssssssssssssssssssssssssssssssssssssss") this.type = options.type; if ( options.type == 'kunde' ){ this.typeAdmin = true;