summaryrefslogtreecommitdiffstats
path: root/api/team.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-12-22 10:35:55 -0500
committerChristopher Speller <crspeller@gmail.com>2016-12-22 10:35:55 -0500
commit52c4538817c310977474dd94c8e828f6489dadab (patch)
tree0c4d3fe01b7beb3424e2d95a28f4343cc3169fbd /api/team.go
parent8a92908dad4f74ac3373d65a361594acb95cf1a0 (diff)
downloadchat-52c4538817c310977474dd94c8e828f6489dadab.tar.gz
chat-52c4538817c310977474dd94c8e828f6489dadab.tar.bz2
chat-52c4538817c310977474dd94c8e828f6489dadab.zip
Remove new user event handling on client (#4822)
Diffstat (limited to 'api/team.go')
-rw-r--r--api/team.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/api/team.go b/api/team.go
index 730eb1d3d..af517d9ba 100644
--- a/api/team.go
+++ b/api/team.go
@@ -303,11 +303,6 @@ func JoinUserToTeam(team *model.Team, user *model.User) *model.AppError {
RemoveAllSessionsForUserId(user.Id)
InvalidateCacheForUser(user.Id)
- // This message goes to everyone, so the teamId, channelId and userId are irrelevant
- message := model.NewWebSocketEvent(model.WEBSOCKET_EVENT_NEW_USER, "", "", "", nil)
- message.Add("user_id", user.Id)
- go Publish(message)
-
return nil
}