change(ui): don't call user name method if there is no remote stream

This commit is contained in:
sylenien 2022-11-09 13:26:05 +01:00
parent a634f22cdd
commit 15ae991985

View file

@ -95,7 +95,10 @@ function AssistActions({
if (remoteActive) {
toggleUserName(userDisplayName);
} else {
toggleUserName();
// higher than waiting for messages
if (peerConnectionStatus > 1) {
toggleUserName();
}
}
}, [remoteActive]);