mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
save
This commit is contained in:
@@ -147,6 +147,7 @@ export class ChatPage implements OnInit {
|
||||
|
||||
if (event instanceof NavigationEnd && event.url == '/home/chat' ||
|
||||
event instanceof NavigationEnd && event.url == "/home/chat?gbCreateGroup=true") {
|
||||
this.chatService.refreshtoken();
|
||||
this.checkCreateGroup();
|
||||
}
|
||||
|
||||
|
||||
@@ -18,8 +18,6 @@ export class ContactsPage implements OnInit {
|
||||
loggedUser: any;
|
||||
users = [];
|
||||
|
||||
headers: HttpHeaders;
|
||||
options:any;
|
||||
contacts:any;
|
||||
textSearch:string;
|
||||
room:any;
|
||||
@@ -52,10 +50,8 @@ export class ContactsPage implements OnInit {
|
||||
}
|
||||
|
||||
loadUsers(){
|
||||
this.options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
this.chatService.getAllUsers().subscribe((res:any)=>{
|
||||
|
||||
this.chatService.getAllUsers().subscribe((res:any) => {
|
||||
|
||||
this.contacts = res.users.filter(data => data.username != this.sessionStore.user.UserName);
|
||||
this.users = this.contacts.sort((a,b) => {
|
||||
@@ -68,6 +64,8 @@ export class ContactsPage implements OnInit {
|
||||
return 0;
|
||||
});
|
||||
this.showLoader = false;
|
||||
}, (error) =>{
|
||||
this.chatService.refreshtoken();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -133,6 +133,7 @@ export class LoginPage implements OnInit {
|
||||
|
||||
await this.authService.loginToChatWs();
|
||||
this.ChatService.setheader()
|
||||
this.ChatService.refreshtoken();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user