summaryrefslogtreecommitdiffstats
path: root/api/team.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/team.go')
-rw-r--r--api/team.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/team.go b/api/team.go
index 3ed9b70af..f65feb5dc 100644
--- a/api/team.go
+++ b/api/team.go
@@ -274,7 +274,7 @@ func JoinUserToTeam(team *model.Team, user *model.User) *model.AppError {
InvalidateCacheForUser(user.Id)
// This message goes to every channel, so the channelId is irrelevant
- PublishAndForget(model.NewMessage("", "", user.Id, model.ACTION_NEW_USER))
+ go Publish(model.NewMessage("", "", user.Id, model.ACTION_NEW_USER))
return nil
}