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
@@ -48,7 +48,7 @@ export class ChatOptionsFeaturesPage implements OnInit {
}
ngOnInit() {
this.chatService.refreshtoken();
// this.chatService.refreshtoken();
}
notImplemented() {
@@ -33,7 +33,7 @@ export class SetRoomOwnerPage implements OnInit {
}
ngOnInit() {
this.chatService.refreshtoken();
// this.chatService.refreshtoken();
}
async close(){
+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();
}
+1
View File
@@ -394,6 +394,7 @@ export class ChatService {
} else {
this.setheader()
await this.refreshtoken();
}
}
@@ -34,7 +34,7 @@ export class EditGroupPage implements OnInit {
}
ngOnInit() {
this.chatService.refreshtoken();
// this.chatService.refreshtoken();
this.getRoomInfo();
}
@@ -54,7 +54,7 @@ export class GroupContactsPage implements OnInit {
}
ngOnInit() {
this.chatService.refreshtoken();
// this.chatService.refreshtoken();
//this.getRoomInfo();
this.loadUsers();
@@ -177,7 +177,7 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
ngOnInit() {
this.ChatSystemService.getAllRooms();
this.chatService.refreshtoken();
// this.chatService.refreshtoken();
this.scrollToBottom();
this.getChatMembers();
@@ -9,7 +9,7 @@ import { SessionStore } from 'src/app/store/session.service';
import { GroupContactsPage } from '../group-messages/group-contacts/group-contacts.page';
import { ToastService } from 'src/app/services/toast.service';
import { ThemeService } from 'src/app/services/theme.service';
import { RouteService } from 'src/app/services/route.service';
@Component({
selector: 'app-new-group',
templateUrl: './new-group.page.html',
@@ -25,6 +25,7 @@ export class NewGroupPage implements OnInit{
selectedDuration = ['','',''];
countDownTime:any;
task:any;
link = ''
documents: any;
loggedUserChat: any;
@@ -42,7 +43,8 @@ export class NewGroupPage implements OnInit{
public ChatSystemService: ChatSystemService,
private authService: AuthService,
private toastService: ToastService,
public ThemeService: ThemeService
public ThemeService: ThemeService,
private RouteService: RouteService,
)
{
this.loggedUserChat = authService.ValidatedUserChat['data'];
@@ -52,10 +54,11 @@ export class NewGroupPage implements OnInit{
ngOnInit() {
this.task = this.dataService.get("task");
if(this.task) {
this.link = this.dataService.get("link");
this.groupName = this.task.Folio;
this.documents = this.dataService.get("documents");
console.log(this.dataService.data);
this.dataService.set("newGroup", false);
this.dataService.set("link", false);
}
}
@@ -74,7 +77,12 @@ export class NewGroupPage implements OnInit{
close() {
// this.addGroupMessage.emit();
this.closeAllDesktopComponents.emit();
if(this.link) {
this.RouteService.goBack();
this.dataService.set("link", false);
} else {
this.closeAllDesktopComponents.emit();
}
}
async createGroup() {
@@ -35,7 +35,7 @@ export class ChatPopoverPage implements OnInit {
}
ngOnInit() {
this.chatService.refreshtoken();
// this.chatService.refreshtoken();
}
close(action:any){
@@ -25,7 +25,7 @@ export class MessagesOptionsPage implements OnInit {
}
ngOnInit() {
this.chatService.refreshtoken();
// this.chatService.refreshtoken();
}
close(){