change(ui): don't call user name method if there is no remote stream
This commit is contained in:
parent
a634f22cdd
commit
15ae991985
1 changed files with 4 additions and 1 deletions
|
|
@ -95,7 +95,10 @@ function AssistActions({
|
|||
if (remoteActive) {
|
||||
toggleUserName(userDisplayName);
|
||||
} else {
|
||||
toggleUserName();
|
||||
// higher than waiting for messages
|
||||
if (peerConnectionStatus > 1) {
|
||||
toggleUserName();
|
||||
}
|
||||
}
|
||||
}, [remoteActive]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue