@chat21/chat21-ionic 3.0.93 → 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
package/package.json
CHANGED
package/src/app/app.component.ts
CHANGED
|
@@ -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
|
-
|
|
762
|
-
|
|
763
|
-
}
|
|
764
|
-
|
|
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
|
}
|
|
@@ -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
|
|
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
|
-
|
|
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
|
|
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) {
|