3
0

Allow nameless (groups) channels

This commit is contained in:
Denis Arh 2018-10-31 13:07:30 +01:00
parent 2fb769ab57
commit c0c0a88aeb

View File

@ -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")
}