PLT-6198: Use added to channel system message on default channels. (#5969)

Use a different sytem message when a user was added to a default channel
by someone else than when they joined themselves.
This commit is contained in:
George Goldberg
2017-04-04 18:19:42 +01:00
committed by GitHub
parent 0b5c0794fd
commit 32460bf63b
13 changed files with 49 additions and 28 deletions

View File

@@ -362,7 +362,7 @@ func (me *TestHelper) UpdateActiveUser(user *model.User, active bool) {
func LinkUserToTeam(user *model.User, team *model.Team) {
utils.DisableDebugLogForTest()
err := app.JoinUserToTeam(team, user)
err := app.JoinUserToTeam(team, user, "")
if err != nil {
l4g.Error(err.Error())
l4g.Close()