From 15ae991985dc3cf70f14ec3b78e9bf49df05ec12 Mon Sep 17 00:00:00 2001 From: sylenien Date: Wed, 9 Nov 2022 13:26:05 +0100 Subject: [PATCH] change(ui): don't call user name method if there is no remote stream --- .../Assist/components/AssistActions/AssistActions.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx b/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx index 85c2f6ad3..066118e18 100644 --- a/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx +++ b/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx @@ -95,7 +95,10 @@ function AssistActions({ if (remoteActive) { toggleUserName(userDisplayName); } else { - toggleUserName(); + // higher than waiting for messages + if (peerConnectionStatus > 1) { + toggleUserName(); + } } }, [remoteActive]);