@chat21/chat21-ionic 3.4.27-rc1 → 3.4.27-rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -8,6 +8,9 @@
8
8
  ### **Copyrigth**:
9
9
  *Tiledesk SRL*
10
10
 
11
+ # 3.4.27-rc2
12
+ - **bug-fixed**: cannede responses role
13
+
11
14
  # 3.4.27-rc1
12
15
  - **added**: managed canned responses with roles
13
16
  - **changed**: name in info mesage
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chat21/chat21-ionic",
3
3
  "author": "Tiledesk SRL",
4
- "version": "3.4.27-rc1",
4
+ "version": "3.4.27-rc2",
5
5
  "license": "MIT License",
6
6
  "homepage": "https://tiledesk.com/",
7
7
  "repository": {
@@ -556,7 +556,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
556
556
  this.fileUploadAccept = this.checkAcceptedUploadFile(project)
557
557
  this.rolesCanned = this.checkCannedResponsesRoles(project)
558
558
  this.canShowCanned = this.checkCannedResponses(project)
559
- console.log('[CONVS-DETAIL] this.rolesCanned ', this.rolesCanned)
559
+ this.logger.log('[CONVS-DETAIL] this.rolesCanned ', this.canShowCanned)
560
560
  }
561
561
  }, (error) => {
562
562
  this.logger.error('[CONVS-DETAIL] - GET PROJECTID BY CONV RECIPIENT - ERROR ', error)
@@ -603,8 +603,8 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
603
603
 
604
604
  let hasRoleToShowCanned = this.rolesCanned[PERMISSIONS.CANNED_RESPONSES_READ]
605
605
  this.logger.log('[CONVS-DETAIL] checkCannedResponses hasRoleToShowCanned ', hasRoleToShowCanned)
606
- if(hasRoleToShowCanned){
607
- return true
606
+ if(!hasRoleToShowCanned){
607
+ return false
608
608
  }
609
609
 
610
610
  return true