Skip to content

Commit ab3ceb3

Browse files
committed
minor improvements
1 parent 48bc2ff commit ab3ceb3

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

src/app/components/conversation-detail/conversation/conversation.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ export class ConversationComponent implements OnInit, AfterViewInit, OnChanges {
428428
}
429429
})
430430
}
431-
})
431+
});
432432
// } else { //get conversation from 'conversations' firebase node
433433
// this.archivedConversationsHandlerService.getConversationDetail(this.conversationId, (conv)=>{
434434
// this.logger.debug('[CONV-COMP] archivedConversationsHandlerService getConversationDetail', this.conversationId, conv, this.isConversationArchived)
@@ -891,7 +891,7 @@ export class ConversationComponent implements OnInit, AfterViewInit, OnChanges {
891891

892892
subscribtion = this.chatManager.conversationsHandlerService.conversationRemoved.pipe(takeUntil(this.unsubscribe$)).subscribe((conversation) => {
893893
this.logger.debug('[CONV-COMP] ***** DATAIL conversationsRemoved *****', conversation, this.conversationWith, this.isConversationArchived);
894-
if(conversation && conversation.uid === this.conversationWith && !this.isConversationArchived){
894+
if(conversation && conversation.uid === this.conversationWith){
895895
this.starRatingWidgetService.setOsservable(true)
896896
this.isConversationArchived = true;
897897
}

src/app/components/message/avatar/avatar.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ export class AvatarComponent implements OnInit {
2121
this.url = this.baseLocation +'/assets/images/light_avatar_placeholder.svg'
2222
}
2323
let url = this.imageRepoService.getImagePhotoUrl(this.senderID)
24+
// this.imageRepoService.checkImageExists(url, (existImage)=> {
25+
// existImage? this.url = url: null;
26+
// })
2427
this.checkImageExists(url, (existImage)=> {
2528
existImage? this.url = url: null;
2629
})

src/app/providers/global-settings.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ export class GlobalSettingsService {
580580
// globals.setParameter('userFullname', TEMP);
581581
}
582582
TEMP = tiledeskSettings['preChatForm'];
583-
// this.logger.debug('[GLOBAL-SET] setVariablesFromSettings > preChatForm:: ', TEMP]);
583+
// this.logger.debug('[GLOBAL-SET] setVariablesFromSettings > preChatForm:: ', TEMP);
584584
if (TEMP !== undefined) {
585585
globals.preChatForm = (TEMP === true) ? true : false;
586586
// globals.setParameter('preChatForm', (TEMP === false) ? false : true);

src/assets/twp/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@
265265
window.Tiledesk('onLoadParams', function(event_data) {
266266
console.log("onLoadParams Tiledesk FN", event_data);
267267
window.tiledesk.open();
268-
// window.tiledesk.signInWithCustomToken('JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJhNWE3MTU1Zi1lMjZmLTRkNDUtYmIyNC03MWIxNGViOGI3MTMiLCJzdWIiOiJhYzlkYTFjMi01N2I1LTQzYmQtYTZjOS1hZjczZDBhMDA5ZjIiLCJzY29wZSI6WyJyYWJiaXRtcS5yZWFkOiovKi9hcHBzLnRpbGVjaGF0LnVzZXJzLmFjOWRhMWMyLTU3YjUtNDNiZC1hNmM5LWFmNzNkMGEwMDlmMi4qIiwicmFiYml0bXEud3JpdGU6Ki8qL2FwcHMudGlsZWNoYXQudXNlcnMuYWM5ZGExYzItNTdiNS00M2JkLWE2YzktYWY3M2QwYTAwOWYyLioiLCJyYWJiaXRtcS5jb25maWd1cmU6Ki8qLyoiXSwiY2xpZW50X2lkIjoiYWM5ZGExYzItNTdiNS00M2JkLWE2YzktYWY3M2QwYTAwOWYyIiwiY2lkIjoiYWM5ZGExYzItNTdiNS00M2JkLWE2YzktYWY3M2QwYTAwOWYyIiwiYXpwIjoiYWM5ZGExYzItNTdiNS00M2JkLWE2YzktYWY3M2QwYTAwOWYyIiwidXNlcl9pZCI6ImFjOWRhMWMyLTU3YjUtNDNiZC1hNmM5LWFmNzNkMGEwMDlmMiIsImFwcF9pZCI6InRpbGVjaGF0IiwiaWF0IjoxNjM5OTk5NjU2LCJleHAiOjE2NDI1OTE2NTYsImF1ZCI6WyJyYWJiaXRtcSIsImFjOWRhMWMyLTU3YjUtNDNiZC1hNmM5LWFmNzNkMGEwMDlmMiJdLCJraWQiOiJ0aWxlZGVzay1rZXkiLCJ0aWxlZGVza19hcGlfcm9sZXMiOiJ1c2VyIn0.NThih7mHK41OX7tnHjMXVgPX9yDDyIDlxrMvjDqNJ-Y')
268+
// window.Tiledesk('signInWithCustomToken', 'JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MDliOGVmYTg3MzJlYjAwMTQxNzYzZDlfNWU0ZWNiOThiNzhlZTQwMDE3NDA2MTEwIiwiZmlyc3RuYW1lIjoiS2VsbHkiLCJsYXN0bmFtZSI6IkdyYWNlIiwiZW1haWwiOiJncmFjZUBlbWFpbG5hLmNvIiwic3ViIjoidXNlcmV4dGVybmFsIiwiYXVkIjoiaHR0cHM6Ly90aWxlZGVzay5jb20vcHJvamVjdHMvNjA5YjhlZmE4NzMyZWIwMDE0MTc2M2Q5IiwiaWF0IjoxNjQxODAzODk0fQ.p0reTwd25p93CsDTyQa8tkihgFxThAI4DXloNc6vbXw')
269269
// .then(response => console.log('signInWithCustomToken: user_logged -> ', response))
270270
// .catch((error)=> console.error('signInWithCustomToken: error', error))
271271
});

src/chat21-core/providers/mqtt/mqtt-conversation-handler.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export class MQTTConversationHandler extends ConversationHandlerService {
9898
*/
9999
connect() {
100100
this.logger.log('[MQTTConversationHandler] connecting conversation handler...');
101+
console.log('[MQTTConversationHandler] connecting conversation handler...', this.conversationWith);
101102
if (this.conversationWith == null) {
102103
this.logger.error('[MQTTConversationHandler] cant connect invalid this.conversationWith', this.conversationWith);
103104
return;
@@ -181,6 +182,7 @@ export class MQTTConversationHandler extends ConversationHandlerService {
181182
channelType,
182183
// language,
183184
(err, message) => {
185+
console.log('SENDDDDDDDD', err, message)
184186
if (err) {
185187
message.status = '-100';
186188
this.logger.log('[MQTTConversationHandler] ERROR', err);

0 commit comments

Comments
 (0)