From c0c0a88aeb8e06051efcb593a34bf62ce3aeeaf3 Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Wed, 31 Oct 2018 13:07:30 +0100 Subject: [PATCH] Allow nameless (groups) channels --- sam/service/channel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sam/service/channel.go b/sam/service/channel.go index 69d7025da..5a9654906 100644 --- a/sam/service/channel.go +++ b/sam/service/channel.go @@ -262,7 +262,7 @@ func (svc *channel) Create(in *types.Channel) (out *types.Channel, err error) { return errors.New("Not allowed to create group channels") } - if len(in.Name) == 0 { + if len(in.Name) == 0 && in.Type != types.ChannelTypeGroup { return errors.New("Channel name not provided") }