diff options
author | Corey Hulen <corey@hulen.com> | 2016-05-10 09:54:11 -0700 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-05-10 12:54:11 -0400 |
commit | c8285185a91c48f9b6db866b65b293cb9eceeb65 (patch) | |
tree | c0382c8e5df54d3d93a2e461f1b1d8068b896a7a /api | |
parent | ceaaf2243c1f8a3568476c3e32ab6046b33731bd (diff) | |
download | chat-c8285185a91c48f9b6db866b65b293cb9eceeb65.tar.gz chat-c8285185a91c48f9b6db866b65b293cb9eceeb65.tar.bz2 chat-c8285185a91c48f9b6db866b65b293cb9eceeb65.zip |
PLT-2806 sending websocket when adding user to team (#2953)
* PLT-2806 sending websocket when adding user to team
* Fixing config file
Diffstat (limited to 'api')
-rw-r--r-- | api/team.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/api/team.go b/api/team.go index 6db8bc245..605aa590b 100644 --- a/api/team.go +++ b/api/team.go @@ -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 } |