From 9ee022f6cf9cfcc951d95feb0e85219ea8b51cfc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de>
Date: Mon, 30 Sep 2019 18:36:33 +0200
Subject: [PATCH] Open 'create-question'-dialog directly after joining a
 session

---
 .../components/shared/comment-list/comment-list.component.ts   | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/app/components/shared/comment-list/comment-list.component.ts b/src/app/components/shared/comment-list/comment-list.component.ts
index 1a140c7dc..45bf1a4bc 100644
--- a/src/app/components/shared/comment-list/comment-list.component.ts
+++ b/src/app/components/shared/comment-list/comment-list.component.ts
@@ -104,6 +104,9 @@ export class CommentListComponent implements OnInit {
     this.translateService.get('comment-list.search').subscribe(msg => {
       this.searchPlaceholder = msg;
     });
+    if (this.userRole === UserRole.PARTICIPANT) {
+      this.openCreateDialog();
+    }
   }
 
   checkScroll(): void {
-- 
GitLab