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