diff --git a/src/utils/webrtc/models/CallParticipantModel.js b/src/utils/webrtc/models/CallParticipantModel.js index 5c260f12cde..153abccf937 100644 --- a/src/utils/webrtc/models/CallParticipantModel.js +++ b/src/utils/webrtc/models/CallParticipantModel.js @@ -118,6 +118,10 @@ CallParticipantModel.prototype = { }, set(key, value) { + if (this.attributes[key] === value) { + return + } + this.attributes[key] = value this._trigger('change:' + key, [value]) diff --git a/src/utils/webrtc/models/LocalCallParticipantModel.js b/src/utils/webrtc/models/LocalCallParticipantModel.js index 112a51624ed..27219e53807 100644 --- a/src/utils/webrtc/models/LocalCallParticipantModel.js +++ b/src/utils/webrtc/models/LocalCallParticipantModel.js @@ -51,6 +51,10 @@ LocalCallParticipantModel.prototype = { }, set(key, value) { + if (this.attributes[key] === value) { + return + } + this.attributes[key] = value this._trigger('change:' + key, [value]) diff --git a/src/utils/webrtc/models/LocalMediaModel.js b/src/utils/webrtc/models/LocalMediaModel.js index ed62bfdf1a7..3f87eb8c262 100644 --- a/src/utils/webrtc/models/LocalMediaModel.js +++ b/src/utils/webrtc/models/LocalMediaModel.js @@ -77,6 +77,10 @@ LocalMediaModel.prototype = { }, set(key, value) { + if (this.attributes[key] === value) { + return + } + this.attributes[key] = value this._trigger('change:' + key, [value])