Connect data

This commit is contained in:
CHIEFSOFT\ameye
2024-08-11 10:58:04 -04:00
parent de016f4f04
commit 2ac78d4c38
@@ -33,7 +33,6 @@ connectStart : number = 0;
this.curr_session = this.sessionDataProviderService.session;
addEventListener('app-family-invite', (data:any) => {
// debugger;
console.log("CALL DATA ", data);
this.fromMessage = data.detail.data.message;
this.fromData = this.fromMessage.from; // small subset of from data
@@ -41,12 +40,10 @@ connectStart : number = 0;
});
addEventListener('app-family-invite-accepted', (data:any) => {
// debugger;
console.log("ACCEPT CALL DATA ", data); //connectData
this.router.navigate(['familyconnectaction']);
this.router.navigate(['familyconnectaction'], { state: data.connectData });
this.initialInviteState();
});
}
startInviteEvent(){
@@ -60,6 +57,10 @@ connectStart : number = 0;
}, 10000);
}
initialInviteState(){
this.show_connect= true;
this.show_invite = false;
}
acceptConnect(currentConnectData){
console.log("ABOUT TO GO TO ROOM - ", currentConnectData);
// connect to the room
@@ -67,7 +68,8 @@ connectStart : number = 0;
// let us tell the invitee to join us in the room
this.socketToolsService.familyInviteConnect( currentConnectData );
// let's go to the page
this.router.navigate(['familyconnectaction']);
this.router.navigate(['familyconnectaction'],{ state: currentConnectData });
this.initialInviteState();
}
ngOnInit() {
this.getFamilyList();