Skip to content

Commit

Permalink
Merge pull request #11047 from nextcloud/backport/11038/stable28
Browse files Browse the repository at this point in the history
[stable28] fix(call): do not update participants list often when not in the call
  • Loading branch information
Antreesy committed Nov 30, 2023
2 parents 1797246 + 817c305 commit 4b09a62
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mixins/getParticipants.js
Expand Up @@ -75,7 +75,7 @@ const getParticipants = {
*/
onJoinedConversation() {
this.$nextTick(() => {
this.cancelableGetParticipants()
this.debounceUpdateParticipants()
})
},

Expand All @@ -86,7 +86,9 @@ const getParticipants = {
return
}

if (this.$store.getters.windowIsVisible()) {
// this.conversation is provided by component, where mixin is used
if (this.$store.getters.windowIsVisible()
&& (this.isInCall || !this.conversation?.hasCall)) {
this.debounceFastUpdateParticipants()
} else {
this.debounceSlowUpdateParticipants()
Expand Down

0 comments on commit 4b09a62

Please sign in to comment.