зеркало из https://github.com/nextcloud/spreed.git
Merge pull request #3748 from nextcloud/bugfix/noid/stabil-key-for-participants
Make the key for participants stable
This commit is contained in:
Коммит
4c04f572c7
|
@ -24,7 +24,7 @@
|
|||
<ul>
|
||||
<Participant
|
||||
v-for="item in items"
|
||||
:key="item.id"
|
||||
:key="generateKey(item)"
|
||||
:participant="item"
|
||||
:is-selectable="participantsSelectable"
|
||||
@clickParticipant="handleClickParticipant" />
|
||||
|
@ -84,6 +84,16 @@ export default {
|
|||
async handleClickParticipant(participant) {
|
||||
this.$emit('click', participant)
|
||||
},
|
||||
|
||||
generateKey(participant) {
|
||||
let key = 'i#' + participant.id
|
||||
if (participant.userId) {
|
||||
key = 'u#' + participant.userId
|
||||
} else if (participant.sessionId) {
|
||||
key = 's#' + participant.sessionId
|
||||
}
|
||||
return key
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
Загрузка…
Ссылка в новой задаче