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