mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: filter wrong "to" elements on Session.signal
parent
7507569c9f
commit
91daa9aa44
|
@ -521,9 +521,10 @@ export class Session implements EventDispatcher {
|
|||
|
||||
if (signal.to && signal.to.length > 0) {
|
||||
const connectionIds: string[] = [];
|
||||
|
||||
signal.to.forEach(connection => {
|
||||
connectionIds.push(connection.connectionId);
|
||||
if (!!connection.connectionId) {
|
||||
connectionIds.push(connection.connectionId);
|
||||
}
|
||||
});
|
||||
signalMessage['to'] = connectionIds;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue