summaryrefslogtreecommitdiffstats
path: root/api/auto_teams.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-07-21 12:26:27 -0800
committer=Corey Hulen <corey@hulen.com>2015-07-21 12:26:27 -0800
commit848eeeeef4ed277ceb00d3fc6c8a0303c0e72d09 (patch)
tree98390442e8052b8e02469e5ccf7596e22b7ea07f /api/auto_teams.go
parente87adce4a059b97a65198b326be6304abdf4e657 (diff)
parentbee26e3f2654ce7acce647818847480569236343 (diff)
downloadchat-848eeeeef4ed277ceb00d3fc6c8a0303c0e72d09.tar.gz
chat-848eeeeef4ed277ceb00d3fc6c8a0303c0e72d09.tar.bz2
chat-848eeeeef4ed277ceb00d3fc6c8a0303c0e72d09.zip
fixing merge conflicts
Diffstat (limited to 'api/auto_teams.go')
-rw-r--r--api/auto_teams.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/api/auto_teams.go b/api/auto_teams.go
index 2fe826774..e5c772b4c 100644
--- a/api/auto_teams.go
+++ b/api/auto_teams.go
@@ -39,22 +39,22 @@ func NewAutoTeamCreator(client *model.Client) *AutoTeamCreator {
func (cfg *AutoTeamCreator) createRandomTeam() (*model.Team, bool) {
var teamEmail string
+ var teamDisplayName string
var teamName string
- var teamDomain string
if cfg.Fuzzy {
teamEmail = utils.FuzzEmail()
+ teamDisplayName = utils.FuzzName()
teamName = utils.FuzzName()
- teamDomain = utils.FuzzName()
} else {
teamEmail = utils.RandomEmail(cfg.EmailLength, cfg.EmailCharset)
- teamName = utils.RandomName(cfg.NameLength, cfg.NameCharset)
- teamDomain = utils.RandomName(cfg.NameLength, cfg.NameCharset) + model.NewId()
+ teamDisplayName = utils.RandomName(cfg.NameLength, cfg.NameCharset)
+ teamName = utils.RandomName(cfg.NameLength, cfg.NameCharset) + model.NewId()
}
team := &model.Team{
- Name: teamName,
- Domain: teamDomain,
- Email: teamEmail,
- Type: model.TEAM_OPEN,
+ DisplayName: teamDisplayName,
+ Name: teamName,
+ Email: teamEmail,
+ Type: model.TEAM_OPEN,
}
result, err := cfg.client.CreateTeam(team)