@chat21/chat21-ionic 3.0.107-rc.2 → 3.0.107-rc.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
package/package.json
CHANGED
package/src/app/app.component.ts
CHANGED
|
@@ -739,7 +739,7 @@ export class AppComponent implements OnInit {
|
|
|
739
739
|
}
|
|
740
740
|
}, 1000)
|
|
741
741
|
}else{
|
|
742
|
-
|
|
742
|
+
this.goToDashboardLogin()
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
745
|
}
|
|
@@ -1518,7 +1518,7 @@ export class AppComponent implements OnInit {
|
|
|
1518
1518
|
const currentUser = this.tiledeskAuthService.getCurrentUser();
|
|
1519
1519
|
let message = conversationToMessage(conversation, currentUser.uid)
|
|
1520
1520
|
let duration = getDateDifference(message.timestamp, Date.now())
|
|
1521
|
-
if(duration.minutes > 1) return;
|
|
1521
|
+
if(duration.minutes > 0.1) return;
|
|
1522
1522
|
if(message.isSender){
|
|
1523
1523
|
this.triggerEvents.triggerAfterSendMessageEvent(message)
|
|
1524
1524
|
}else if(!message.isSender){
|
|
@@ -55,6 +55,7 @@ export class ScriptService {
|
|
|
55
55
|
let script = document.createElement('script')
|
|
56
56
|
script.type = 'text/javascript';
|
|
57
57
|
script.src = currentScript.src;
|
|
58
|
+
script.async = true
|
|
58
59
|
script.onload = () => {
|
|
59
60
|
currentScript.loaded = true;
|
|
60
61
|
resolve({ script: name, loaded: true, status: 'Loaded' });
|
|
@@ -191,6 +191,8 @@ export class TiledeskAuthService {
|
|
|
191
191
|
} else if (storedTiledeskToken && storedTiledeskToken === tiledeskToken) {
|
|
192
192
|
this.logger.log('[TILEDESK-AUTH] - checkAndSetInStorageTiledeskToken STORED-TOKEN EXIST AND IS = TO TOKEN ')
|
|
193
193
|
}
|
|
194
|
+
|
|
195
|
+
localStorage.setItem('tiledesk_token', tiledeskToken)
|
|
194
196
|
}
|
|
195
197
|
|
|
196
198
|
|