summaryrefslogtreecommitdiffstats
path: root/app/post.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2018-08-22 20:12:51 +0100
committerCarlos Tadeu Panato Junior <ctadeu@gmail.com>2018-08-22 21:12:51 +0200
commitd2945cdd77bdf1ee03367a0d45624094fb936c19 (patch)
tree7289f0a5d85b7c37e1fe5bf02cb40ab30623d0fa /app/post.go
parent43483805eabcb36ef9018f12a82a6d3ac055baf5 (diff)
downloadchat-d2945cdd77bdf1ee03367a0d45624094fb936c19.tar.gz
chat-d2945cdd77bdf1ee03367a0d45624094fb936c19.tar.bz2
chat-d2945cdd77bdf1ee03367a0d45624094fb936c19.zip
MM-11782: Make archived channels experimental and off-by-default. (#9281)
* MM-11782: Make archived channels experimental and off-by-default. * Fix test.
Diffstat (limited to 'app/post.go')
-rw-r--r--app/post.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/post.go b/app/post.go
index 299c9ce3a..0ce1bbe2d 100644
--- a/app/post.go
+++ b/app/post.go
@@ -648,7 +648,7 @@ func (a *App) DeletePostFiles(post *model.Post) {
func (a *App) SearchPostsInTeam(terms string, userId string, teamId string, isOrSearch bool, includeDeletedChannels bool) (*model.PostSearchResults, *model.AppError) {
paramsList := model.ParseSearchParams(terms)
- includeDeleted := includeDeletedChannels && *a.Config().TeamSettings.ViewArchivedChannels
+ includeDeleted := includeDeletedChannels && *a.Config().TeamSettings.ExperimentalViewArchivedChannels
esInterface := a.Elasticsearch
if license := a.License(); esInterface != nil && *a.Config().ElasticsearchSettings.EnableSearching && license != nil && *license.Features.Elasticsearch {