remove refresh token

This commit is contained in:
Peter Maquiran
2022-10-11 13:56:56 +01:00
parent 972173413e
commit cc247134a3
17 changed files with 31 additions and 24 deletions
+3 -4
View File
@@ -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();
});
}
+1 -1
View File
@@ -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)
+1 -3
View File
@@ -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();
}