@chat21/chat21-ionic 3.0.96-rc.2 → 3.0.96
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
package/package.json
CHANGED
|
@@ -940,6 +940,19 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
|
|
|
940
940
|
|
|
941
941
|
}
|
|
942
942
|
|
|
943
|
+
// createEmailText(lastMessageText: string): string{
|
|
944
|
+
// let text = ''
|
|
945
|
+
// this.messages.reverse().forEach((message, index) => {
|
|
946
|
+
// if(isInfo(message))
|
|
947
|
+
// return;
|
|
948
|
+
// if(index === 0)
|
|
949
|
+
// text += message.sender_fullname +'REPLIED TO YOU' + ': ' + message.text +' ('+ new Date(message.timestamp).toDateString() + ')' + '\n\n\n'
|
|
950
|
+
// if(index !== 0)
|
|
951
|
+
// text += message.sender_fullname + ': ' + message.text + '\n'
|
|
952
|
+
// })
|
|
953
|
+
// return text
|
|
954
|
+
// }
|
|
955
|
+
|
|
943
956
|
sendEmail(message: string): Observable<boolean>{
|
|
944
957
|
const tiledeskToken= this.tiledeskAuthService.getTiledeskToken();
|
|
945
958
|
const emailFormGroup = {
|
|
@@ -1038,6 +1051,8 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
|
|
|
1038
1051
|
this.leadInfo && this.leadInfo.presence && this.leadInfo.presence['status']=== 'offline' &&
|
|
1039
1052
|
this.leadInfo.email && !emailSectionMsg){
|
|
1040
1053
|
this.logger.log('[CONVS-DETAIL] - SEND MESSAGE --> SENDING EMAIL', msg, this.leadInfo.email)
|
|
1054
|
+
// let msgText = this.createEmailText(msg)
|
|
1055
|
+
// console.log('messsss-->', msgText)
|
|
1041
1056
|
this.sendEmail(msg).subscribe(status => {
|
|
1042
1057
|
if(status){
|
|
1043
1058
|
//SEND MESSAGE ALSO AS EMAIL
|