Skip to content

Commit

Permalink
fix(store): throw error from room creation to handle in component
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Dec 13, 2024
1 parent f0c5fc4 commit 4bf3e46
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/store/conversationsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -994,8 +994,7 @@ const actions = {
context.dispatch('addConversation', conversation)
return conversation.token
} catch (error) {
console.error('Error creating new group conversation: ', error)
return ''
return Promise.reject(error)
}
},

Expand Down

0 comments on commit 4bf3e46

Please sign in to comment.