summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco <marcoambrosini@icloud.com>2023-01-24 18:14:04 +0000
committerMarco <marcoambrosini@icloud.com>2023-01-24 18:14:04 +0000
commitdf3841d4e596405a78fd5ac473cde5e9a679b5d6 (patch)
tree0fcbe15ad440083b5911109752dbb8a7caa59d10
parenta5c9418e40cc51c24c82a0fb745448c167478671 (diff)
Only allow to assign users and guests
Signed-off-by: Marco <marcoambrosini@icloud.com>
-rw-r--r--src/components/BreakoutRoomsEditor/BreakoutRoomsParticipantsEditor.vue8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/BreakoutRoomsEditor/BreakoutRoomsParticipantsEditor.vue b/src/components/BreakoutRoomsEditor/BreakoutRoomsParticipantsEditor.vue
index 06da65c03..1e7c39181 100644
--- a/src/components/BreakoutRoomsEditor/BreakoutRoomsParticipantsEditor.vue
+++ b/src/components/BreakoutRoomsEditor/BreakoutRoomsParticipantsEditor.vue
@@ -97,6 +97,7 @@ import NcAppNavigationItem from '@nextcloud/vue/dist/Components/NcAppNavigationI
import SelectableParticipant from './SelectableParticipant.vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import ArrowLeft from 'vue-material-design-icons/ArrowLeft.vue'
+import { PARTICIPANT } from '../../constants.js'
export default {
name: 'BreakoutRoomsParticipantsEditor',
@@ -133,12 +134,13 @@ export default {
computed: {
participants() {
- return this.$store.getters.participantsList(this.token)
+ return this.$store.getters.participantsList(this.token).filter(participant => {
+ return participant.participantType === PARTICIPANT.TYPE.USER
+ || participant.participantType === PARTICIPANT.TYPE.GUEST
+ })
},
attendeesById() {
- // Just get all attendees for this conversation without mapping to an array
- // Like participants, but object, not array
return this.$store.state.participantsStore.attendees[this.token]
},