Skip to content

Commit

Permalink
fix(NewConversationDialog): get participants list before join
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed May 28, 2024
1 parent 67aca89 commit 7f4b551
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/components/NewConversationDialog/NewConversationDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,11 @@ export default {

if (!this.isInCall) {
// Push the newly created conversation's route.
this.pushNewRoute()
this.$router.push({ name: 'conversation', params: { token: this.newConversation.token } })
.catch(err => console.debug(`Error while pushing the new conversation's route: ${err}`))

// Get complete participant list in advance
this.$store.dispatch('fetchParticipants', { token: this.newConversation.token })
}

// Close the modal right away if the conversation is public.
Expand All @@ -342,11 +346,6 @@ export default {
}
},

pushNewRoute() {
this.$router.push({ name: 'conversation', params: { token: this.newConversation.token } })
.catch(err => console.debug(`Error while pushing the new conversation's route: ${err}`))
},

/** Handles the press of the enter key */
handleEnter() {
if (!this.disabled) {
Expand Down

0 comments on commit 7f4b551

Please sign in to comment.