summaryrefslogtreecommitdiffstats
path: root/src/mixins/getParticipants.js
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2022-03-07 18:31:57 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2022-03-09 12:09:39 +0100
commit99def03db2d5470e4aaf139152c01bf79fc01c48 (patch)
tree4d28186e7e8dd10c52424dd2c3f71269d46b9cef /src/mixins/getParticipants.js
parent9e4c4c0304cbbc546e19423dfe656932e18ce970 (diff)
Fix participant permissions not reloaded when general permissions change
Participants without custom attendee permissions fall back to the call or conversation permissions. Due to this the participants need to be fetched again to update their permissions when the call or conversation permissions change. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'src/mixins/getParticipants.js')
-rw-r--r--src/mixins/getParticipants.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mixins/getParticipants.js b/src/mixins/getParticipants.js
index 25070b962..fc9352d15 100644
--- a/src/mixins/getParticipants.js
+++ b/src/mixins/getParticipants.js
@@ -59,6 +59,9 @@ const getParticipants = {
EventBus.$on('route-change', this.onRouteChange)
EventBus.$on('joined-conversation', this.onJoinedConversation)
+ EventBus.$on('conversation-permissions-changed', this.debounceUpdateParticipants)
+ EventBus.$on('call-permissions-changed', this.debounceUpdateParticipants)
+
// FIXME this works only temporary until signaling is fixed to be only on the calls
// Then we have to search for another solution. Maybe the room list which we update
// periodically gets a hash of all online sessions?
@@ -68,6 +71,8 @@ const getParticipants = {
stopGetParticipantsMixin() {
EventBus.$off('route-change', this.onRouteChange)
EventBus.$off('joined-conversation', this.onJoinedConversation)
+ EventBus.$off('conversation-permissions-changed', this.debounceUpdateParticipants)
+ EventBus.$off('call-permissions-changed', this.debounceUpdateParticipants)
EventBus.$off('signaling-participant-list-changed', this.debounceUpdateParticipants)
},