fix change timeline, publication wont load list

This commit is contained in:
Peter Maquiran
2024-03-06 15:25:06 +01:00
parent d4c20457a2
commit a3e83d8298
9 changed files with 62 additions and 79 deletions
+10 -2
View File
@@ -190,6 +190,7 @@ export class AuthService {
SessionStore.user.RochetChatUserId = message.result.id
SessionStore.save()
this.ChatSystemService.loadChat()
this.RochetChatConnectorService.setStatus('online')
window['RochetChatConnectorService'] = this.RochetChatConnectorService
setTimeout(() => {
@@ -199,7 +200,14 @@ export class AuthService {
}).catch((error) => {
// console.error(SessionStore.user.ChatData, 'web socket login',error)
console.error(SessionStore.user.ChatData, 'web socket login', error)
if(window.location.pathname.includes('/home/')) {
setTimeout(() => {
this.loginToChatWs();
}, 4000)
}
})
}
@@ -333,7 +341,7 @@ export class AuthService {
}
refreshToken() {
return this.http
.put<any>(environment.apiURL + "UserAuthentication/RefreshToken", {
refreshToken: SessionStore.user.RefreshToken,