Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2020-01-07 12:02:33 +0300
committerGitHub <noreply@github.com>2020-01-07 12:02:33 +0300
commitdd786cc2a2ef5d8629232d82af6d1dfcce184ef9 (patch)
tree6e23054b2dbd5eb9d5a3f7e92d178c26cdec7d21
parent58a905f06eec986956233caa182f5cbb27a9d291 (diff)
parent4e905595226c08933c130ff76d5c53569d524656 (diff)
Merge pull request #2667 from nextcloud/fix-participants-added-to-the-wrong-token
Fix participants added to the wrong token
-rw-r--r--src/components/RightSidebar/Participants/ParticipantsTab.vue9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/components/RightSidebar/Participants/ParticipantsTab.vue b/src/components/RightSidebar/Participants/ParticipantsTab.vue
index 3ad6e49bf..a5e68e989 100644
--- a/src/components/RightSidebar/Participants/ParticipantsTab.vue
+++ b/src/components/RightSidebar/Participants/ParticipantsTab.vue
@@ -228,11 +228,14 @@ export default {
}
try {
- const participants = await fetchParticipants(this.token)
- this.$store.dispatch('purgeParticipantsStore', this.token)
+ // The token must be stored in a local variable to ensure that
+ // the same token is used after waiting.
+ const token = this.token
+ const participants = await fetchParticipants(token)
+ this.$store.dispatch('purgeParticipantsStore', token)
participants.data.ocs.data.forEach(participant => {
this.$store.dispatch('addParticipant', {
- token: this.token,
+ token: token,
participant,
})
})