From 8f9bf53e31f10ece8a2037c4b135b6def5570163 Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Wed, 18 Sep 2024 16:58:22 +0200 Subject: [PATCH] fix(ban): do not try to remove a banned user (handled by backend) Signed-off-by: Maksim Sukharev --- src/store/participantsStore.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/participantsStore.js b/src/store/participantsStore.js index 0ac2fe0a581..6f2b55655bc 100644 --- a/src/store/participantsStore.js +++ b/src/store/participantsStore.js @@ -595,8 +595,9 @@ const actions = { showError(t('spreed', 'Error while banning the participant')) throw error } + } else { + await removeAttendeeFromConversation(token, attendeeId) } - await removeAttendeeFromConversation(token, attendeeId) commit('deleteParticipant', { token, attendeeId }) },