diff --git a/packages/hms-video-web/src/transport/index.ts b/packages/hms-video-web/src/transport/index.ts index 5c7a869c2c..0a6e2a7c0c 100644 --- a/packages/hms-video-web/src/transport/index.ts +++ b/packages/hms-video-web/src/transport/index.ts @@ -585,9 +585,12 @@ export default class HMSTransport implements ITransport { } } async changeName(name: string) { - await this.signal.updatePeer({ - name: name, - }); + const peer = this.store.getLocalPeer(); + if (peer && peer.name !== name) { + await this.signal.updatePeer({ + name: name, + }); + } } async changeMetadata(metadata: string) {