summaryrefslogtreecommitdiffstats
path: root/api/team.go
diff options
context:
space:
mode:
authorThomas Balthazar <tbalthazar@users.noreply.github.com>2016-05-18 22:34:31 +0200
committerHarrison Healey <harrisonmhealey@gmail.com>2016-05-18 16:34:31 -0400
commit55f6a0b21c46f77fb33e1af29c5960298bdb6907 (patch)
treea1af9535800ea63fac38f31be18051adb032b2fb /api/team.go
parent02576f3d597b3c419df20f2a50aa6e587f1d98bb (diff)
downloadchat-55f6a0b21c46f77fb33e1af29c5960298bdb6907.tar.gz
chat-55f6a0b21c46f77fb33e1af29c5960298bdb6907.tar.bz2
chat-55f6a0b21c46f77fb33e1af29c5960298bdb6907.zip
Move away from the "andForget" style of function (#3046)
This is the second and last part of the refactoring. First part is documented here: https://github.com/mattermost/platform/pull/3043
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
}