PLT-2806 sending websocket when adding user to team (#2953)

* PLT-2806 sending websocket when adding user to team

* Fixing config file
This commit is contained in:
Corey Hulen 2016-05-10 09:54:11 -07:00 committed by Christopher Speller
parent ceaaf2243c
commit c8285185a9

View file

@ -275,6 +275,9 @@ func JoinUserToTeam(team *model.Team, user *model.User) *model.AppError {
RemoveAllSessionsForUserId(user.Id)
InvalidateCacheForUser(user.Id)
// This message goes to every channel, so the channelId is irrelevant
PublishAndForget(model.NewMessage("", "", user.Id, model.ACTION_NEW_USER))
return nil
}