diff --git a/src/app/components/home/new-landing/new-landing.component.ts b/src/app/components/home/new-landing/new-landing.component.ts index a06b6f0da72d4cebe26413c8e22ac904c65d1619..f8ed2f5bdd34112ec366cf1c3338984c848bcb80 100644 --- a/src/app/components/home/new-landing/new-landing.component.ts +++ b/src/app/components/home/new-landing/new-landing.component.ts @@ -51,5 +51,11 @@ export class NewLandingComponent implements OnInit { }); dialogRef.componentInstance.role = UserRole.CREATOR; dialogRef.componentInstance.loginType = 'beforecreation'; + dialogRef.afterClosed() + .subscribe(result => { + if (this.user && !this.user.isGuest) { + this.openCreateRoomDialog(); + } + }); } }