Skip to content

Commit

Permalink
### 3.0.96 in PROD
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Panico committed Mar 29, 2023
1 parent 2321f38 commit 1cbc1df
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# chat21-ionic ver 3.0

### 3.0.96 in PROD

### 3.0.96-rc.2
- changed: chat21client.js to v0.1.12.5 (window scope fixed)

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.0.96-rc.2",
"version": "3.0.96",
"license": "MIT License",
"homepage": "https://tiledesk.com/",
"repository": {
Expand Down
15 changes: 15 additions & 0 deletions src/app/pages/conversation-detail/conversation-detail.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,19 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit

}

// createEmailText(lastMessageText: string): string{
// let text = ''
// this.messages.reverse().forEach((message, index) => {
// if(isInfo(message))
// return;
// if(index === 0)
// text += message.sender_fullname +'REPLIED TO YOU' + ': ' + message.text +' ('+ new Date(message.timestamp).toDateString() + ')' + '\n\n\n'
// if(index !== 0)
// text += message.sender_fullname + ': ' + message.text + '\n'
// })
// return text
// }

sendEmail(message: string): Observable<boolean>{
const tiledeskToken= this.tiledeskAuthService.getTiledeskToken();
const emailFormGroup = {
Expand Down Expand Up @@ -1038,6 +1051,8 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
this.leadInfo && this.leadInfo.presence && this.leadInfo.presence['status']=== 'offline' &&
this.leadInfo.email && !emailSectionMsg){
this.logger.log('[CONVS-DETAIL] - SEND MESSAGE --> SENDING EMAIL', msg, this.leadInfo.email)
// let msgText = this.createEmailText(msg)
// console.log('messsss-->', msgText)
this.sendEmail(msg).subscribe(status => {
if(status){
//SEND MESSAGE ALSO AS EMAIL
Expand Down

0 comments on commit 1cbc1df

Please sign in to comment.