PLT-3881 Fix websocket errors after leaving the team (#3815)

Этот коммит содержится в:
Corey Hulen
2016-08-17 07:17:44 -08:00
коммит произвёл Joram Wilander
родитель dba2deabb0
Коммит eafc802831
3 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@@ -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)
}
}