Do not auto-join 'off-topic' channel if it is private (#7950)
Этот коммит содержится в:
@@ -78,8 +78,7 @@ func (a *App) JoinDefaultChannels(teamId string, user *model.User, channelRole s
|
|||||||
|
|
||||||
if result := <-a.Srv.Store.Channel().GetByName(teamId, "off-topic", true); result.Err != nil {
|
if result := <-a.Srv.Store.Channel().GetByName(teamId, "off-topic", true); result.Err != nil {
|
||||||
err = result.Err
|
err = result.Err
|
||||||
} else {
|
} else if offTopic := result.Data.(*model.Channel); offTopic.Type == model.CHANNEL_OPEN {
|
||||||
offTopic := result.Data.(*model.Channel)
|
|
||||||
|
|
||||||
cm := &model.ChannelMember{
|
cm := &model.ChannelMember{
|
||||||
ChannelId: offTopic.Id,
|
ChannelId: offTopic.Id,
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user