APIv4 DELETE channels/{channel_id} (#5723)

Этот коммит содержится в:
Saturnino Abril
2017-03-14 21:08:58 +09:00
коммит произвёл George Goldberg
родитель aafc63933a
Коммит a71a9fc3bf
6 изменённых файлов: 337 добавлений и 0 удалений

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

@@ -703,6 +703,9 @@ func GetChannelCounts(teamId string, userId string) (*model.ChannelCounts, *mode
}
func JoinChannel(channel *model.Channel, userId string) *model.AppError {
if channel.DeleteAt > 0 {
return model.NewLocAppError("JoinChannel", "api.channel.join_channel.already_deleted.app_error", nil, "")
}
userChan := Srv.Store.User().Get(userId)
memberChan := Srv.Store.Channel().GetMember(channel.Id, userId)