summaryrefslogtreecommitdiffstats
path: root/api/team.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-08-17 07:17:44 -0800
committerJoram Wilander <jwawilander@gmail.com>2016-08-17 11:17:44 -0400
commiteafc8028314805ded314648e02078cf596760197 (patch)
treea891483de272d1335b02e3aa1e994aece808cc0b /api/team.go
parentdba2deabb06aa5092bc634687294fa5c8cecd8bd (diff)
downloadchat-eafc8028314805ded314648e02078cf596760197.tar.gz
chat-eafc8028314805ded314648e02078cf596760197.tar.bz2
chat-eafc8028314805ded314648e02078cf596760197.zip
PLT-3881 Fix websocket errors after leaving the team (#3815)
Diffstat (limited to 'api/team.go')
-rw-r--r--api/team.go2
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)
}
}