mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix chat open modal
This commit is contained in:
@@ -90,7 +90,7 @@ export class NotificationsService {
|
||||
}
|
||||
}
|
||||
|
||||
private getAndpostToken(username) {
|
||||
private getAndpostToken(username) {
|
||||
const geturl = environment.apiURL + 'notifications/token';
|
||||
|
||||
if (this.platform.is('mobile')) {
|
||||
@@ -367,13 +367,19 @@ export class NotificationsService {
|
||||
|
||||
let navigationExtras: NavigationExtras = { queryParams: { "roomId": notification.notification.data.IdObject, } };
|
||||
|
||||
this.zone.run(() => this.router.navigate(['/home/chat']));
|
||||
if (window.location.search.includes("roomId")) {
|
||||
this.zone.run(() => this.router.navigate(['/home/chat']));
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
this.zone.run(() => this.router.navigate(['/home/chat'], navigationExtras));
|
||||
}, 200);
|
||||
}
|
||||
|
||||
|
||||
// (() => {
|
||||
// this.zone.run(() => this.NotificationHolderService.PhoneClickNotification(notification));
|
||||
// })()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user