From d7ec741fa0785f011577921d1b58e49772e202b1 Mon Sep 17 00:00:00 2001
From: tekay <tom.kaesler@mni.thm.de>
Date: Tue, 1 Dec 2020 11:42:09 +0100
Subject: [PATCH] Fix room join

The removed code resulted in losing the account when joining a room as participant where user is creator.

Regression commit: 8b94b1c7330ddc70931027e5bf465f229e8f7ba6
---
 src/app/components/shared/room-join/room-join.component.ts | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/app/components/shared/room-join/room-join.component.ts b/src/app/components/shared/room-join/room-join.component.ts
index d91819655..2ab715c04 100644
--- a/src/app/components/shared/room-join/room-join.component.ts
+++ b/src/app/components/shared/room-join/room-join.component.ts
@@ -65,12 +65,7 @@ export class RoomJoinComponent implements OnInit {
         if (!this.user) {
           this.guestLogin();
         } else {
-          if (this.user.role === UserRole.CREATOR) {
-            this.authenticationService.logout();
-            this.guestLogin();
-          } else {
-            this.addAndNavigate();
-          }
+          this.addAndNavigate();
         }
       }
     });
-- 
GitLab