From 4bf3e46a2054ba90b47a7de1844818667a35f1be Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Fri, 13 Dec 2024 11:29:52 +0100 Subject: [PATCH] fix(store): throw error from room creation to handle in component Signed-off-by: Maksim Sukharev --- src/store/conversationsStore.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/store/conversationsStore.js b/src/store/conversationsStore.js index 2a16c8465d5..8fb708aa5a4 100644 --- a/src/store/conversationsStore.js +++ b/src/store/conversationsStore.js @@ -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) } },