[MM-9904] Add /invite slash command to invite users to a channel (#8482)

* [MM-9904] Add /invite slash command to invite users to a channel

* Update en.json
Этот коммит содержится в:
Carlos Tadeu Panato Junior
2018-04-16 14:23:58 +02:00
коммит произвёл Jesús Espino
родитель 0759cf639d
Коммит bf24f51c4e
4 изменённых файлов: 272 добавлений и 0 удалений

Просмотреть файл

@@ -218,6 +218,20 @@ func (me *TestHelper) createChannel(team *model.Team, channelType string) *model
return channel
}
func (me *TestHelper) CreateDmChannel(user *model.User) *model.Channel {
utils.DisableDebugLogForTest()
var err *model.AppError
var channel *model.Channel
if channel, err = me.App.CreateDirectChannel(me.BasicUser.Id, user.Id); err != nil {
l4g.Error(err.Error())
l4g.Close()
time.Sleep(time.Second)
panic(err)
}
utils.EnableDebugLogForTest()
return channel
}
func (me *TestHelper) CreatePost(channel *model.Channel) *model.Post {
id := model.NewId()