code refactoring

This commit is contained in:
Peter Maquiran
2024-08-18 13:27:57 +01:00
parent 650c772084
commit ef12ff439d
50 changed files with 729 additions and 735 deletions
+3 -3
View File
@@ -30,7 +30,7 @@ export class ChatModule {
}
syncMessage() {
async syncMessage() {
const connection = this.SignalRService.getConnectionState()
connection.pipe(
@@ -38,7 +38,7 @@ export class ChatModule {
).subscribe((value)=> {
if(value) {
// on reconnect
this.ChatServiceService.asyncAllRoomMessage();
this.ChatServiceService.start();
}
});
@@ -52,7 +52,7 @@ export class ChatModule {
// on page reload sync
if(!(!SessionStore.user.Inactivity || !SessionStore.exist)) {
this.ChatServiceService.asyncAllRoomMessage();
this.ChatServiceService.start();
}
}
}