From 506eb3db94ad756115232679cb7dd21645641aff Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Wed, 9 Feb 2022 14:46:51 +0100 Subject: [PATCH] save --- src/app/guards/auth.guard.ts | 2 +- src/app/services/chat/room.service.ts | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/guards/auth.guard.ts b/src/app/guards/auth.guard.ts index 17b45ac9f..10a5ff3e3 100644 --- a/src/app/guards/auth.guard.ts +++ b/src/app/guards/auth.guard.ts @@ -18,7 +18,7 @@ export class AuthGuard implements CanActivate { canActivate( route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable | Promise | boolean | UrlTree { - + // if user not active if(!SessionStore.user.Inactivity) { this.router.navigate(['/']); diff --git a/src/app/services/chat/room.service.ts b/src/app/services/chat/room.service.ts index 10b322cdf..5962dcc36 100644 --- a/src/app/services/chat/room.service.ts +++ b/src/app/services/chat/room.service.ts @@ -103,7 +103,6 @@ export class RoomService { }) if(!messageIsFound) { - console.log('messageIsFound', messageIsFound) const message = this.prepareMessage(ChatMessage) this.lastMessage = message @@ -120,8 +119,6 @@ export class RoomService { }); this.addMessageDB(ChatMessage) - } else { - console.log('have') } }, 150)