update user status

This commit is contained in:
Peter Maquiran
2023-09-22 17:25:27 +01:00
parent aaa11f98b2
commit e4bba2e68b
4 changed files with 120 additions and 113 deletions
@@ -24,7 +24,7 @@ export class ContactsPage implements OnInit {
dm:any;
sessionStore = SessionStore
userList = this.ChatSystemService.users
constructor(
private modalController: ModalController,
private http: HttpClient,
@@ -44,6 +44,7 @@ export class ContactsPage implements OnInit {
ngOnInit() {
// this.chatService.refreshtoken();
// this.loadUsers();
this.ChatSystemService.getUser()
}
@@ -55,7 +56,7 @@ export class ContactsPage implements OnInit {
const username = e.name.toLowerCase()
return username.includes(this.textSearch)
})
}
@@ -86,7 +87,7 @@ export class ContactsPage implements OnInit {
createRoom(username:string) {
if(this.loading) {
return
return
}
this.loading = true
@@ -109,7 +110,7 @@ export class ContactsPage implements OnInit {
}
getDirectMessage(roomId:any) {
this.openModal(roomId);
}