Skip to content

Commit

Permalink
fix: check for custom ice server config
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 committed May 17, 2024
1 parent c29d3a7 commit 23758da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hms-video-store/src/utils/ice-server-config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { HMSICEServer } from '../interfaces';

export const transformIceServerConfig = (defaultConfig: RTCIceServer[], iceServers?: HMSICEServer[]) => {
if (!iceServers) {
if (!iceServers || iceServers.length > 0) {
return defaultConfig;
}
const transformedIceServers = iceServers.map(server => {
Expand Down

0 comments on commit 23758da

Please sign in to comment.