@chat21/chat21-ionic 3.4.7-rc.2 → 3.4.8-rc.1

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
@@ -1,5 +1,10 @@
1
1
  # chat21-ionic ver 3.0
2
2
 
3
+ ### 3.4.8-rc.1
4
+ - bug-fixed: if support group is a group, do not call getRequest
5
+
6
+ ### 3.4.7 in PROD
7
+
3
8
  ### 3.4.7-rc.2
4
9
  - minior fix
5
10
 
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.7-rc.2",
4
+ "version": "3.4.8-rc.1",
5
5
  "license": "MIT License",
6
6
  "homepage": "https://tiledesk.com/",
7
7
  "repository": {
@@ -61,7 +61,8 @@ import {
61
61
  TYPE_MSG_EMAIL,
62
62
  TYPE_MSG_FORM,
63
63
  CHANNEL_TYPE,
64
- INFO_MESSAGE_TYPE
64
+ INFO_MESSAGE_TYPE,
65
+ TYPE_GROUP
65
66
  } from 'src/chat21-core/utils/constants'
66
67
  import {
67
68
  checkPlatformIsMobile,
@@ -528,7 +529,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
528
529
  this.initGroupsHandler();
529
530
  this.startConversation();
530
531
  this.initSubscriptions();
531
- this.getLeadDetail()
532
+ this.getLeadDetail();
532
533
  this.initializeTyping();
533
534
  }
534
535
  this.addEventsKeyboard()
@@ -971,7 +972,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
971
972
 
972
973
  getLeadDetail() {
973
974
  const that = this;
974
- if (this.channelType !== TYPE_DIRECT) {
975
+ if (this.channelType !== TYPE_DIRECT && this.channelType !== TYPE_GROUP) {
975
976
  const tiledeskToken = this.tiledeskAuthService.getTiledeskToken();
976
977
  const projectId = getProjectIdSelectedConversation(this.conversationWith)
977
978
  this.logger.debug('[CONVS-DETAIL] getLeadDetail - section ', projectId)
@@ -903,6 +903,7 @@ function getMimeTypeFromExtension(extension: string): string {
903
903
  '.txt': 'text/plain',
904
904
  '.doc': 'application/msword',
905
905
  '.docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
906
+ '.wav' : 'audio/wav'
906
907
  // Aggiungi altri tipi MIME se necessario
907
908
  };
908
909
  return mimeTypes[extension] || '';