@chat21/chat21-ionic 3.0.86-rc.2 → 3.0.86-rc.3

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
@@ -2,6 +2,9 @@
2
2
 
3
3
  ### 3.0.86 in PROD
4
4
 
5
+ ### 3.0.86-rc.3
6
+ - bug-fixed: cannot send message after email is queued successfully
7
+
5
8
  ### 3.0.86-rc.2
6
9
  - bug-fixed: undefined reading 'channel' while render email icon in ion-conversation-detail component
7
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.0.86-rc.2",
4
+ "version": "3.0.86-rc.3",
5
5
  "license": "MIT License",
6
6
  "homepage": "https://tiledesk.com/",
7
7
  "repository": {
@@ -418,8 +418,8 @@ export class MessageTextAreaComponent implements OnInit, AfterViewInit, OnChange
418
418
  modal.onDidDismiss().then((detail: any) => {
419
419
  this.logger.log('[CONVS-DETAIL][MSG-TEXT-AREA] send Email detail returned-->', detail);
420
420
  const form = detail.data.form
421
- if (form&& form.message && form.message.trim() !== '') {
422
- const text = '**' + form.subject + '**\r\n' + form.message
421
+ if (form&& form.text && form.text.trim() !== '') {
422
+ const text = '**' + form.subject + '**\r\n' + form.text
423
423
  const attributes = {
424
424
  channel: TYPE_MSG_EMAIL
425
425
  }
@@ -42,7 +42,7 @@ export class SendEmailModal implements OnInit {
42
42
  value.subject !== ''? this.input_topic.nativeElement.classList.add('hasValue') : this.input_topic.nativeElement.classList.remove('hasValue')
43
43
  })
44
44
  if(this.msg && (this.msg !== '' || this.msg !== null)){
45
- this.emailFormGroup.patchValue({ message: this.msg})
45
+ this.emailFormGroup.patchValue({ text: this.msg})
46
46
  }
47
47
  }
48
48
 
@@ -62,7 +62,7 @@ export class SendEmailModal implements OnInit {
62
62
  this.logger.log('[SEND-EMAIL-MODAL] onSubmit -->',this.emailFormGroup)
63
63
  const tiledeskToken = this.tiledeskAuthService.getTiledeskToken()
64
64
  this.tiledeskService.sendEmail(tiledeskToken, this.projectId, this.emailFormGroup.value).subscribe((res)=> {
65
- console.log('[SEND-EMAIL-MODAL] subscribe to sendEmail API response -->', res)
65
+ this.logger.debug('[SEND-EMAIL-MODAL] subscribe to sendEmail API response -->', res)
66
66
  if(res && res.queued){
67
67
  this.viewCtrl.dismiss({form: this.emailFormGroup.value})
68
68
  this.presentToast(this.translationMap.get('SEND_EMAIL_SUCCESS'), 'success')
@@ -915,7 +915,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
915
915
  request_id: this.conversationWith
916
916
  }
917
917
  this.tiledeskService.sendEmail(tiledeskToken, this.leadInfo.projectId, emailFormGroup).subscribe((res)=> {
918
- console.log('[SEND-EMAIL-MODAL] subscribe to sendEmail API response -->', res)
918
+ this.logger.debug('[SEND-EMAIL-MODAL] subscribe to sendEmail API response -->', res)
919
919
  if(res && res.queued){
920
920
  this.presentToast(this.translationsMap.get('SEND_EMAIL_SUCCESS_OFFLINE_MESSAGE'), 'success', '', 2000)
921
921
  }