diff options
author | Corey Hulen <corey@hulen.com> | 2016-08-17 07:17:44 -0800 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-08-17 11:17:44 -0400 |
commit | eafc8028314805ded314648e02078cf596760197 (patch) | |
tree | a891483de272d1335b02e3aa1e994aece808cc0b /api | |
parent | dba2deabb06aa5092bc634687294fa5c8cecd8bd (diff) | |
download | chat-eafc8028314805ded314648e02078cf596760197.tar.gz chat-eafc8028314805ded314648e02078cf596760197.tar.bz2 chat-eafc8028314805ded314648e02078cf596760197.zip |
PLT-3881 Fix websocket errors after leaving the team (#3815)
Diffstat (limited to 'api')
-rw-r--r-- | api/team.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/team.go b/api/team.go index 702ea96d1..20a0671da 100644 --- a/api/team.go +++ b/api/team.go @@ -331,6 +331,8 @@ func LeaveTeam(team *model.Team, user *model.User) *model.AppError { if result := <-Srv.Store.Channel().RemoveMember(channel.Id, user.Id); result.Err != nil { return result.Err } + + InvalidateCacheForChannel(channel.Id) } } |