diff --git a/Session/Conversations/ConversationVC+Interaction.swift b/Session/Conversations/ConversationVC+Interaction.swift index 6b9ccf166..f9eb98389 100644 --- a/Session/Conversations/ConversationVC+Interaction.swift +++ b/Session/Conversations/ConversationVC+Interaction.swift @@ -2310,18 +2310,16 @@ extension ConversationVC: .sinkUntilComplete( receiveCompletion: { result in switch result { - case .finished: break + case .finished: + self?.viewModel.showToast( + text: "banUserBanned".localized(), + backgroundColor: .backgroundSecondary + ) case .failure: - let modal: ConfirmationModal = ConfirmationModal( - targetView: self?.view, - info: ConfirmationModal.Info( - title: "error".localized(), - body: .text("context_menu_ban_user_error_alert_message".localized()), - cancelTitle: "okay".localized(), - cancelStyle: .alert_text - ) + self?.viewModel.showToast( + text: "banErrorFailed".localized(), + backgroundColor: .backgroundSecondary ) - self?.present(modal, animated: true) } } )