Skip to content

Commit

Permalink
Move the ignoring of the event one level down
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Jan 19, 2022
1 parent 7945581 commit a73a771
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/mixins/getParticipants.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ const getParticipants = {
})
},

debounceUpdateParticipants() {
debounceUpdateParticipants(onlySelfChanged) {
if (onlySelfChanged) {
return
}

if (!this.$store.getters.windowIsVisible()
|| !this.$store.getters.getSidebarStatus
|| !this.isActive) {
Expand Down
4 changes: 1 addition & 3 deletions src/utils/signaling.js
Original file line number Diff line number Diff line change
Expand Up @@ -1195,9 +1195,7 @@ Signaling.Standalone.prototype.processRoomEvent = function(data) {
}
}
this._trigger('usersJoined', [joinedUsers])
if (userListIsDirty) {
this._trigger('participantListChanged')
}
this._trigger('participantListChanged', !userListIsDirty)
}
break
case 'leave':
Expand Down

0 comments on commit a73a771

Please sign in to comment.