diff options
author | Corey Hulen <corey@hulen.com> | 2016-05-12 18:36:30 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-05-12 18:36:30 -0700 |
commit | 9d94869cc6a0fb9f051879437c104ccd76094380 (patch) | |
tree | 4a61582c2a41b9d5983f107b0d66ece906d22718 /api | |
parent | e46c1b8d52dce75a442b42c40803a071532676d7 (diff) | |
download | chat-9d94869cc6a0fb9f051879437c104ccd76094380.tar.gz chat-9d94869cc6a0fb9f051879437c104ccd76094380.tar.bz2 chat-9d94869cc6a0fb9f051879437c104ccd76094380.zip |
Fixing issue with missing user (#2989)
Diffstat (limited to 'api')
-rw-r--r-- | api/team.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/api/team.go b/api/team.go index f9b718e06..52d01b1cc 100644 --- a/api/team.go +++ b/api/team.go @@ -266,6 +266,10 @@ func JoinUserToTeam(team *model.Team, user *model.User) *model.AppError { return tmr.Err } + if uua := <-Srv.Store.User().UpdateUpdateAt(user.Id); uua.Err != nil { + return uua.Err + } + // Soft error if there is an issue joining the default channels if err := JoinDefaultChannels(team.Id, user, channelRole); err != nil { l4g.Error(utils.T("api.user.create_user.joining.error"), user.Id, team.Id, err) |