mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
code refactoring
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user