start chat from expedient bug solved

This commit is contained in:
Eudes Inácio
2022-09-26 22:09:08 +01:00
parent 2384692c1b
commit 8c5ffb657d
3 changed files with 13 additions and 6 deletions
+11 -3
View File
@@ -145,8 +145,16 @@ export class ChatPage implements OnInit {
let t = this.showDateDuration(new Date());
this.router.events.forEach((event) => {
if (event instanceof NavigationStart && event.url.startsWith('/home/chat')) {
if (this.dataService.get("newGroup")) {
this.openNewGroupPage();
}
else{
this.closeAllDesktopComponents();
this.showEmptyComponent = true;
}
/* this.router.events.forEach((event) => {
if (event instanceof NavigationStart || event.url.endsWith('/home/chat')) {
if (this.dataService.get("newGroup")) {
this.openNewGroupPage();
}
@@ -158,7 +166,7 @@ export class ChatPage implements OnInit {
else{
this.dataService.set("newGroup", false);
}
});
}); */
}
numSequence(n: number): Array<number> {