Skip to content

Commit

Permalink
### 3.2.0 in PROD
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Panico committed Mar 19, 2024
1 parent 0bde92d commit b29b31c
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 13 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# chat21-ionic ver 3.0

### 3.2.0 in PROD
- changed: API_URL template key in favour of SERVER_BASE_URL

### 3.2.0-rc.1
- added: CONV_TYPE enum for all channel_type
- bug-fixed: do not sent automatic offline message if channel_type is messanger
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@chat21/chat21-ionic",
"author": "Tiledesk SRL",
"version": "3.2.0-rc.1",
"version": "3.2.0",
"license": "MIT License",
"homepage": "https://tiledesk.com/",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export class CannedResponseComponent implements OnInit {
if(this.currentString !== undefined){
this.loadTagsCanned(this.currentString, this.conversationWith)
}
console.log('can show canneddddddd', this.canShowCanned)
}

// getProjectIdSelectedConversation(conversationWith: string): string{
Expand Down
11 changes: 6 additions & 5 deletions src/app/services/brand/brand.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ export class BrandService {
COMPANY_SITE_NAME:"tiledesk.com",
COMPANY_SITE_URL:"https://www.tiledesk.com",
CONTACT_US_EMAIL: "[email protected]",
COMPANY_PRIMARY_COLOR:""
COMPANY_PRIMARY_COLOR:"",
DOCS:false
}
}

Expand Down Expand Up @@ -184,17 +185,17 @@ export class BrandService {
if (url && url !== 'CHANGEIT') {
const data = await this.httpClient.get(url).toPromise();

console.log('[BRAND-SERV] **** GET BRAND FROM URL ****', url);
this.logger.log('[BRAND-SERV] **** GET BRAND FROM URL ****', url);

this.brand =data

console.log('[BRAND-SERV] loadBrand - brand: ', this.brand);
this.logger.log('[BRAND-SERV] loadBrand - brand: ', this.brand);

const resources = new BrandResources(this);
resources.loadResources()
}
} catch (err) {
console.error('[BRAND-SERV] loadBrand error : ', err);
this.logger.error('[BRAND-SERV] loadBrand error : ', err);

this.brand = this._brand;
}
Expand All @@ -203,7 +204,7 @@ export class BrandService {
}

getBrand() {
console.log('BrandService getBrand has been called - brand: ', this.brand);
//this.logger.log('BrandService getBrand has been called - brand: ', this.brand);
return { ...this.brand['CHAT'], ...this.brand['COMMON'] }
}

Expand Down
8 changes: 4 additions & 4 deletions src/app/services/triggerEvents/triggerEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class TriggerEvents {
const windowContext = this.windowContext;
if (windowContext){
// window.parent.dispatchEvent(onAuthStateChanged);
window.parent.postMessage({type: "onAuthStateChanged", detail: detailObj}, '*')
windowContext.postMessage({type: "onAuthStateChanged", detail: detailObj}, '*')
// this.el.nativeElement.dispatchEvent(onAuthStateChanged);
}
} catch (e) {
Expand All @@ -49,7 +49,7 @@ export class TriggerEvents {
const windowContext = this.windowContext;
if (windowContext){
// windowContext.document.dispatchEvent(onAfterMessageSend);
window.parent.postMessage({type: "onAfterMessageSend", detail: { message: messageSent }}, '*')
windowContext.postMessage({type: "onAfterMessageSend", detail: { message: messageSent }}, '*')
}
} catch (e) {
this.logger.error('[TRIGGER-HANDLER] > Error:' + e);
Expand All @@ -65,7 +65,7 @@ export class TriggerEvents {
const windowContext = this.windowContext;
if (windowContext){
// windowContext.document.dispatchEvent(onAfterMessageReceived);
window.parent.postMessage({type: "onAfterMessageReceived", detail: { message: message }}, '*')
windowContext.postMessage({type: "onAfterMessageReceived", detail: { message: message }}, '*')
}
} catch (e) {
this.logger.error('[TRIGGER-HANDLER] > Error:' + e);
Expand All @@ -80,7 +80,7 @@ export class TriggerEvents {
const windowContext = this.windowContext;
if (windowContext){
// windowContext.document.dispatchEvent(onNewConversation);
window.parent.postMessage({type: "onNewConversation", detail: { conversation: conversation}}, '*')
windowContext.postMessage({type: "onNewConversation", detail: { conversation: conversation}}, '*')
}
} catch (e) {
this.logger.error('[TRIGGER-HANDLER] > Error:' + e);
Expand Down
2 changes: 1 addition & 1 deletion src/chat-config-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"MQTTendpoint": "${MQTT_ENDPOINT}",
"APIendpoint": "${MQTT_APIENDPOINT}"
},
"apiUrl": "${API_URL}",
"apiUrl": "${SERVER_BASE_URL}",
"brandSrc": "${BRAND_SRC}",
"whatsappTemplatesBaseUrl":"${WHATSAPP_TEMPLATES_BASE_URL}",
"baseImageUrl": "${API_BASEIMAGE_URL}",
Expand Down

0 comments on commit b29b31c

Please sign in to comment.