This commit is contained in:
Peter Maquiran
2022-10-04 14:38:12 +01:00
parent 29fcd07a93
commit f5644ff5bb
5 changed files with 2 additions and 31 deletions
+1 -3
View File
@@ -599,7 +599,7 @@ export class ChatSystemService {
this.loadingUsers = true
let _res
console.log('getuser')
// console.log('getuser')
try {
_res = await this.ChatService.getAllUsers().toPromise();
@@ -614,7 +614,6 @@ export class ChatSystemService {
for(let UserUpdate of users) {
if(userIds.includes(UserUpdate._id)) {
console.log("found")
for (var index = 0; index < this.users.length; index++) {
if(UserUpdate._id == this.users[index]._id) {
this.users[index] = UserUpdate
@@ -622,7 +621,6 @@ export class ChatSystemService {
}
} else {
this.users.push(UserUpdate)
console.log("push ")
}
}