mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
PLT-2806 sending websocket when adding user to team (#2953)
* PLT-2806 sending websocket when adding user to team * Fixing config file
This commit is contained in:
committed by
Christopher Speller
parent
ceaaf2243c
commit
c8285185a9
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user