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:
authorMarco <marcoambrosini@pm.me>2021-12-01 15:17:22 +0300
committerGitHub <noreply@github.com>2021-12-01 15:17:22 +0300
commitee57c974772ac48f177e44a3b84c2bc0bdb6ed70 (patch)
treeea28132c80884be6037bea2d4c729a303cbc1027
parentb5415b96c84fc8b094c4db45835151c1b3cd4282 (diff)
parentafd9e069249a3bed9e6dfcde73f4aa47d4779339 (diff)
Merge pull request #6641 from nextcloud/bugfix/noid/await-participant-adding-before-udpating-user-status
Await adding the participant before updating the user status
-rw-r--r--src/components/RightSidebar/Participants/ParticipantsTab.vue8
-rw-r--r--src/store/participantsStore.js8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/components/RightSidebar/Participants/ParticipantsTab.vue b/src/components/RightSidebar/Participants/ParticipantsTab.vue
index ba9b59da3..3ca744e34 100644
--- a/src/components/RightSidebar/Participants/ParticipantsTab.vue
+++ b/src/components/RightSidebar/Participants/ParticipantsTab.vue
@@ -266,11 +266,11 @@ export default {
const { request, cancel } = CancelableRequest(fetchParticipants)
this.cancelGetParticipants = cancel
const participants = await request(token)
- this.$store.dispatch('purgeParticipantsStore', token)
+ await this.$store.dispatch('purgeParticipantsStore', token)
const hasUserStatuses = !!participants.headers['x-nextcloud-has-user-statuses']
- participants.data.ocs.data.forEach(participant => {
- this.$store.dispatch('addParticipant', {
+ for (const participant of participants.data.ocs.data) {
+ await this.$store.dispatch('addParticipant', {
token,
participant,
})
@@ -290,7 +290,7 @@ export default {
userId: participant.actorId,
})
}
- })
+ }
this.participantsInitialised = true
} catch (exception) {
if (!Axios.isCancel(exception)) {
diff --git a/src/store/participantsStore.js b/src/store/participantsStore.js
index 56c6e11ee..5fa69e098 100644
--- a/src/store/participantsStore.js
+++ b/src/store/participantsStore.js
@@ -341,7 +341,7 @@ const actions = {
updateSessionId({ commit, getters }, { token, participantIdentifier, sessionId }) {
const attendee = getters.findParticipant(token, participantIdentifier)
if (!attendee) {
- console.error('Participant not found', participantIdentifier)
+ console.error('Participant not found for conversation', token, participantIdentifier)
return
}
@@ -355,7 +355,7 @@ const actions = {
updateUser({ commit, getters }, { token, participantIdentifier, updatedData }) {
const attendee = getters.findParticipant(token, participantIdentifier)
if (!attendee) {
- console.error('Participant not found', participantIdentifier)
+ console.error('Participant not found for conversation', token, participantIdentifier)
return
}
@@ -370,7 +370,7 @@ const actions = {
const attendee = getters.findParticipant(token, participantIdentifier)
if (!attendee) {
- console.error('Participant not found', participantIdentifier)
+ console.error('Participant not found for conversation', token, participantIdentifier)
return
}
@@ -405,7 +405,7 @@ const actions = {
const attendee = getters.findParticipant(token, participantIdentifier)
if (!attendee) {
- console.error('Participant not found', participantIdentifier)
+ console.error('Participant not found for conversation', token, participantIdentifier)
return
}