@chat21/chat21-ionic 3.0.6-2.2 → 3.0.6-2.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
@@ -1,5 +1,9 @@
1
1
  # chat21-ionic ver 3.0
2
2
 
3
+ ### 3.0.62.3
4
+ - Fixes the bug: the method setTyping fired twice after that a message is sent
5
+ - Other minor improvements
6
+
3
7
  ### 3.0.62.2
4
8
  - Fixed bug: if the teammate has the role of agent when switching from the dashboard to the chat and vice versa, the icons that only owners and admins have access to are displayed briefly in the left sidebar
5
9
  - Adds the "Edit Profile" button and a link to the help center in the teammate details drawer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chat21/chat21-ionic",
3
- "version": "3.0.62.2",
3
+ "version": "3.0.62.3",
4
4
  "author": "Tiledesk SRL",
5
5
  "homepage": "https://tiledesk.com/",
6
6
  "scripts": {
@@ -177,6 +177,7 @@ button.user-details-btn-close {
177
177
  -webkit-transform: translateX(-50%);
178
178
  transform: translateX(-50%);
179
179
  left: 50%;
180
+ text-align: center;
180
181
  }
181
182
 
182
183
  .user-details-role > h3 {
@@ -308,6 +309,7 @@ button.user-details-btn-close {
308
309
  padding-top: 186px;
309
310
  font-size: 16px;
310
311
  font-weight: 400;
312
+ z-index: 1;
311
313
  // bottom: 50px;
312
314
  // bottom: 55px;
313
315
 
@@ -308,11 +308,11 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
308
308
 
309
309
  getOSCODE() {
310
310
  this.support_mode = null
311
- if( this.appConfigProvider.getConfig().supportMode === true || this.appConfigProvider.getConfig().supportMode === 'true') {
311
+ if (this.appConfigProvider.getConfig().supportMode === true || this.appConfigProvider.getConfig().supportMode === 'true') {
312
312
  this.support_mode = true
313
- } else if ( this.appConfigProvider.getConfig().supportMode === false || this.appConfigProvider.getConfig().supportMode === 'false') {
313
+ } else if (this.appConfigProvider.getConfig().supportMode === false || this.appConfigProvider.getConfig().supportMode === 'false') {
314
314
  this.support_mode = false
315
- } else if ( !this.appConfigProvider.getConfig().supportMode ) {
315
+ } else if (!this.appConfigProvider.getConfig().supportMode) {
316
316
  this.support_mode = false
317
317
  }
318
318
  this.logger.log('[CONVS-DETAIL] AppConfigService getAppConfig support_mode', this.support_mode)
@@ -1163,12 +1163,10 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
1163
1163
  ) {
1164
1164
  userFullname = this.loggedUser.firstname
1165
1165
  }
1166
- this.typingService.setTyping(
1167
- this.conversationWith,
1168
- message,
1169
- idCurrentUser,
1170
- userFullname,
1171
- )
1166
+
1167
+ if (message !== '') {
1168
+ this.typingService.setTyping(this.conversationWith, message, idCurrentUser, userFullname)
1169
+ }
1172
1170
 
1173
1171
  // ----------------------------------------------------------
1174
1172
  // DISPLAY CANNED RESPONSES if message.lastIndexOf("/")
@@ -1396,7 +1394,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
1396
1394
  let title = htmlEntities(this.tagsCannedFilter[i].title)
1397
1395
  // this.tagsCannedFilter[i].title = "<div class='cannedContent'><div class='cannedTitle'>" + this.tagsCannedFilter[i].title.toString().replace(strSearch, strReplace.trim()) + '</div>' + textCanned + '</div>'
1398
1396
  this.tagsCannedFilter[i].title = "<div class='cannedContent'><div class='cannedTitle'>" + title.toString().replace(strSearch, strReplace.trim()) + '</div>' + textCanned + '</div>'
1399
-
1397
+
1400
1398
  }
1401
1399
  if (this.tagsCannedCount === 0) {
1402
1400
  // const button = this.renderer.createElement('button');
@@ -1406,7 +1404,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
1406
1404
  // this.renderer.listen(button, 'click', () => { alert('hi'); });
1407
1405
  // let nocanned = {}
1408
1406
  // if (this.USER_ROLE !== 'agent') {
1409
- const nocanned = {
1407
+ const nocanned = {
1410
1408
  // "<div class='cannedContent'><div class='cannedTitle nocannedTitle #noCannedTitle'>" + this.translationMap.get('THERE_ARE_NO_CANNED_RESPONSES_AVAILABLE') + ".</div><div class='cannedText'>" + this.translationMap.get('TO_CREATE_THEM_GO_TO_THE_PROJECT') + '</div></div>'
1411
1409
  // <div class='cannedText no-canned-available-text'>" + this.translationMap.get('AddNewCannedResponse') + '</div>
1412
1410
  title:
@@ -1459,7 +1457,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
1459
1457
  // console.log('[CONVS-DETAIL] replaceTagInMessage canned ', canned)
1460
1458
  // console.log('[CONVS-DETAIL] replaceTagInMessage canned title', canned.title)
1461
1459
  // console.log('[CONVS-DETAIL] replaceTagInMessage canned contains nocannedTitle', canned.title.includes('nocannedTitle'))
1462
-
1460
+
1463
1461
  const elTextArea = this.rowTextArea['el']
1464
1462
  const textArea = elTextArea.getElementsByTagName('ion-textarea')[0]
1465
1463