From 6146f28126d4934e5403c48547d3a2b221cf445b Mon Sep 17 00:00:00 2001 From: Abhinav Raut Date: Tue, 14 Apr 2026 21:28:11 +0530 Subject: [PATCH] Add inbox channel validation in create conversation request --- cmd/conversation.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/conversation.go b/cmd/conversation.go index 03be7b00..2b4f8920 100644 --- a/cmd/conversation.go +++ b/cmd/conversation.go @@ -877,6 +877,9 @@ func validateCreateConversationRequest(req createConversationRequest, app *App) if !inbox.Enabled { return envelope.NewError(envelope.InputError, app.i18n.T("globals.messages.disabled"), nil) } + if inbox.Channel != "email" { + return envelope.NewError(envelope.InputError, app.i18n.T("globals.messages.somethingWentWrong"), nil) + } // Validate custom attribute keys. Skip unknown keys. if len(req.CustomAttributes) > 0 {