mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
remove refresh token
This commit is contained in:
@@ -131,7 +131,7 @@ export class ChatPage implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
this.chatService.refreshtoken();
|
||||
// this.chatService.refreshtoken();
|
||||
|
||||
this.segment = "Contactos";
|
||||
|
||||
@@ -147,7 +147,6 @@ 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();
|
||||
}
|
||||
|
||||
@@ -234,7 +233,7 @@ export class ChatPage implements OnInit {
|
||||
}
|
||||
openMessagesPage(rid) {
|
||||
|
||||
this.chatService.refreshtoken();
|
||||
// this.chatService.refreshtoken();
|
||||
this.roomId = rid;
|
||||
|
||||
if (window.innerWidth < 701) {
|
||||
@@ -282,7 +281,7 @@ export class ChatPage implements OnInit {
|
||||
}
|
||||
|
||||
openGroupMessagesPage(rid) {
|
||||
this.chatService.refreshtoken();
|
||||
// this.chatService.refreshtoken();
|
||||
|
||||
this.roomId = rid;
|
||||
if (window.innerWidth < 701) {
|
||||
|
||||
@@ -29,7 +29,7 @@ export class EditGroupPage implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.chatService.refreshtoken();
|
||||
// this.chatService.refreshtoken();
|
||||
this.getRoomInfo();
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ export class GroupContactsPage implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.chatService.refreshtoken();
|
||||
// this.chatService.refreshtoken();
|
||||
this.loadUsers();
|
||||
this.getMembers();
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ export class ContactsPage implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.chatService.refreshtoken();
|
||||
// this.chatService.refreshtoken();
|
||||
this.loadUsers();
|
||||
|
||||
}
|
||||
@@ -65,7 +65,7 @@ export class ContactsPage implements OnInit {
|
||||
});
|
||||
this.showLoader = false;
|
||||
}, (error) =>{
|
||||
this.chatService.refreshtoken();
|
||||
// this.chatService.refreshtoken();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
||||
|
||||
ngOnInit() {
|
||||
this.createDirectoryImage()
|
||||
this.chatService.refreshtoken();
|
||||
// this.chatService.refreshtoken();
|
||||
this.ChatSystemService.getUserOfRoom(this.roomId).then((value) => {
|
||||
|
||||
})
|
||||
|
||||
@@ -43,7 +43,7 @@ export class NewGroupPage implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.chatService.refreshtoken();
|
||||
// this.chatService.refreshtoken();
|
||||
// console.log(this.documents)
|
||||
|
||||
}
|
||||
|
||||
@@ -663,6 +663,7 @@ export class ExpedienteDetailPage implements OnInit {
|
||||
this.dataService.set("task", this.task);
|
||||
this.dataService.set("newGroupName", this.task.Folio);
|
||||
this.dataService.set("documents", this.fulltask.Documents);
|
||||
this.dataService.set("link", window.location.pathname);
|
||||
setTimeout(()=> {
|
||||
this.router.navigate(['/home/chat']);
|
||||
}, 100)
|
||||
|
||||
@@ -135,8 +135,7 @@ export class LoginPage implements OnInit {
|
||||
|
||||
await this.authService.loginToChatWs();
|
||||
this.ChatService.setheader()
|
||||
this.ChatService.refreshtoken();
|
||||
this.ChatSystemService.ReLoadChat();
|
||||
this.ChatSystemService.loadChat();
|
||||
|
||||
}
|
||||
|
||||
@@ -164,7 +163,6 @@ export class LoginPage implements OnInit {
|
||||
await this.authService.loginChat(attempt.ChatData.data);
|
||||
await this.authService.loginToChatWs();
|
||||
this.ChatService.setheader();
|
||||
this.ChatService.refreshtoken();
|
||||
this.ChatSystemService.loadChat();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user