fix route

This commit is contained in:
Peter Maquiran
2023-09-22 16:16:35 +01:00
parent c655d720d5
commit aaa11f98b2
6 changed files with 19 additions and 5 deletions
+11 -1
View File
@@ -59,6 +59,12 @@ export class ProfilePage implements OnInit {
public NotificationHolderService: NotificationHolderService
) {
window['e'] = () => {
console.log(
this.zone.run(() => this.router.navigate(['/home/chat']))
)
}
router.events.subscribe((val) => {
this.isProfileOpen = false
@@ -293,7 +299,11 @@ export class ProfilePage implements OnInit {
let navigationExtras: NavigationExtras = { queryParams: { "roomId": IdObject, } };
this.zone.run(() => this.router.navigate(['/home/chat']));
this.zone.run(() => this.router.navigate(['/home/chat'], navigationExtras));
setTimeout(() => {
this.zone.run(() => this.router.navigate(['/home/chat'], navigationExtras));
}, 200);
this.deleteNotification(index);
}