diff --git a/src/app/pages/login/login.page.ts b/src/app/pages/login/login.page.ts index 8cfd9d7d7..71ff2a69e 100644 --- a/src/app/pages/login/login.page.ts +++ b/src/app/pages/login/login.page.ts @@ -104,6 +104,7 @@ export class LoginPage implements OnInit { // login to API successfully if (attempt) { + console.log(attempt) if (attempt.UserId == SessionStore.user.UserId) { diff --git a/src/app/services/chat/ws-chat-methods.service.ts b/src/app/services/chat/ws-chat-methods.service.ts index 061f68eb6..e3b3786f5 100644 --- a/src/app/services/chat/ws-chat-methods.service.ts +++ b/src/app/services/chat/ws-chat-methods.service.ts @@ -172,7 +172,7 @@ export class WsChatMethodsService { async getAllRooms () { this.loadingWholeList = true const rooms = await this.WsChatService.getRooms(); - console.log('get all rooms', rooms) + console.log('get all rooms', this.loggedUser) await this.storage.remove('Rooms'); await rooms.result.update.forEach( async (roomData: room, index) => { diff --git a/src/app/services/chat/ws-chat.service.ts b/src/app/services/chat/ws-chat.service.ts index 9a5b88f9f..7dc07f82c 100644 --- a/src/app/services/chat/ws-chat.service.ts +++ b/src/app/services/chat/ws-chat.service.ts @@ -53,7 +53,7 @@ export class WsChatService { }) } - const requestId = SessionStore.user.ChatData.data.userId + const requestId = uuidv4() console.log('Login true', SessionStore.user) const message = { msg: "method",