changes made

This commit is contained in:
Eudes Inácio
2022-04-18 15:27:33 +01:00
parent f626b80cd8
commit 1715e0aaee
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -104,6 +104,7 @@ export class LoginPage implements OnInit {
// login to API successfully // login to API successfully
if (attempt) { if (attempt) {
console.log(attempt)
if (attempt.UserId == SessionStore.user.UserId) { if (attempt.UserId == SessionStore.user.UserId) {
@@ -172,7 +172,7 @@ export class WsChatMethodsService {
async getAllRooms () { async getAllRooms () {
this.loadingWholeList = true this.loadingWholeList = true
const rooms = await this.WsChatService.getRooms(); 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 this.storage.remove('Rooms');
await rooms.result.update.forEach( async (roomData: room, index) => { await rooms.result.update.forEach( async (roomData: room, index) => {
+1 -1
View File
@@ -53,7 +53,7 @@ export class WsChatService {
}) })
} }
const requestId = SessionStore.user.ChatData.data.userId const requestId = uuidv4()
console.log('Login true', SessionStore.user) console.log('Login true', SessionStore.user)
const message = { const message = {
msg: "method", msg: "method",