@chat21/chat21-ionic 3.0.92 → 3.0.94

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,11 @@
1
1
  # chat21-ionic ver 3.0
2
2
 
3
+ ### 3.0.94 in PROD
4
+ - bug-fixed: error getting projectId during lead detail for conversations with more than 4 segment
5
+
6
+ ### 3.0.93 in PROD
7
+ - added: goToProfile sidebar-user-detail feature
8
+
3
9
  ### 3.0.92 in PROD
4
10
 
5
11
  ### 3.0.92-rc.1
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.92",
4
+ "version": "3.0.94",
5
5
  "license": "MIT License",
6
6
  "homepage": "https://tiledesk.com/",
7
7
  "repository": {
@@ -757,11 +757,11 @@ export class AppComponent implements OnInit {
757
757
  this.IS_ONLINE = false;
758
758
  // clearTimeout(this.timeModalLogin);
759
759
  // this.timeModalLogin = setTimeout(() => {
760
- if (!this.hadBeenCalledOpenModal) {
761
- this.authModal = this.presentModal('initAuthentication');
762
- this.hadBeenCalledOpenModal = true;
763
- }
764
- // this.goToDashboardLogin()
760
+ // if (!this.hadBeenCalledOpenModal) {
761
+ // this.authModal = this.presentModal('initAuthentication');
762
+ // this.hadBeenCalledOpenModal = true;
763
+ // }
764
+ this.goToDashboardLogin()
765
765
  // }, 1000);
766
766
  }
767
767
  }
@@ -52,8 +52,9 @@
52
52
  <h3>{{ USER_ROLE_LABEL }} </h3>
53
53
 
54
54
  <div class="user-details-view-profile" (click)="goToUserProfile()">
55
- {{translationsMap.get('EditProfileLabel')}}
55
+ {{translationsMap.get('EditProfile')}}
56
56
  </div>
57
+
57
58
  </div>
58
59
 
59
60
  <section class="availability-section">
@@ -180,7 +180,7 @@ export function getProjectIdSelectedConversation(conversationWith: string): stri
180
180
  conversationWith_segments.pop()
181
181
  }
182
182
  let projectId = ''
183
- if (conversationWith_segments.length === 4) {
183
+ if (conversationWith_segments.length >= 4) {
184
184
  projectId = conversationWith_segments[2]
185
185
  }
186
186
  return projectId
@@ -2,9 +2,8 @@
2
2
  import * as moment from 'moment/moment';
3
3
  // import * as moment from 'moment-timezone';
4
4
  import 'moment/locale/it.js';
5
-
6
5
  import { FIREBASESTORAGE_BASE_URL_IMAGE, STORAGE_PREFIX, TYPE_GROUP } from './constants';
7
- import { environment } from '../../environments/environment'; // ?????
6
+
8
7
  import { HttpClient } from '@angular/common/http';
9
8
  import { TranslateHttpLoader } from '@ngx-translate/http-loader';
10
9
  import { AngularDelegate, ModalController } from '@ionic/angular';
@@ -12,7 +11,7 @@ import { ConversationModel } from '../models/conversation';
12
11
 
13
12
  import { MAX_WIDTH_IMAGES, TYPE_DIRECT, TYPE_SUPPORT_GROUP } from './constants';
14
13
 
15
- import { avatarPlaceholder, getColorBck, getImageUrlThumbFromFirebasestorage } from './utils-user';
14
+ import { avatarPlaceholder, getColorBck } from './utils-user';
16
15
  import { TooltipOptions } from 'ng2-tooltip-directive';
17
16
 
18
17
  /**
@@ -313,16 +312,6 @@ export function supports_html5_session() {
313
312
  }
314
313
  }
315
314
 
316
- export function setStoragePrefix(): string {
317
- let prefix = STORAGE_PREFIX;
318
- try {
319
- prefix = environment.storage_prefix + '_';
320
- } catch (e) {
321
-
322
- }
323
- return prefix + this.g.projectid + '_';
324
- }
325
-
326
315
  // function for dynamic sorting
327
316
  export function compareValues(key, order = 'asc') {
328
317
  return function (a, b) {
@@ -626,20 +615,6 @@ export function setChannelType(conversationWith: string): string {
626
615
  return channelType;
627
616
  }
628
617
 
629
- export function getImageUrlThumb(FIREBASESTORAGE_BASE_URL_IMAGE: string, uid: string) {
630
- let imageurl = FIREBASESTORAGE_BASE_URL_IMAGE + environment['firebaseConfig'].storageBucket + '/o/profiles%2F' + uid + '%2Fthumb_photo.jpg?alt=media';
631
- return imageurl;
632
- }
633
-
634
-
635
- // /** */
636
- // export function getImageUrlThumbFromFirebasestorage(uid: string) {
637
- // const FIREBASESTORAGE_BASE_URL_IMAGE = environment.FIREBASESTORAGE_BASE_URL_IMAGE;
638
- // const urlStorageBucket = environment.firebaseConfig.storageBucket + '/o/profiles%2F';
639
- // const imageurl = FIREBASESTORAGE_BASE_URL_IMAGE + urlStorageBucket + uid + '%2Fthumb_photo.jpg?alt=media';
640
- // return imageurl;
641
- // }
642
-
643
618
 
644
619
  /** */
645
620
  export function bypassSecurityTrustResourceUrl(url: string) {