hunk.code_window: func NewFileBackend(settings FileBackendSettings) (FileBackend, error) {
   	switch settings.DriverName {
   	case driverS3:
  
hunk.labels: add keep keep
hunk.after_edit: 	return newFileBackend(settings, true)
   }
   // NewExportFileBackend creates a new file backend for exports, that will not attempt to use bifrost.
   func NewExportFileBackend(settings FileBackendSettings) (FileBackend, error) {
   	return newFileBackend(settings, false)
   }
   func newFileBackend(settings FileBackendSettings, canBeCloud bool) (FileBackend, error) {
  
hunk.file_path: server/platform/shared/filestore/filesstore.go
hunk.type: add
file: // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
  // See LICENSE.txt for license information.
  
  import {useEffect, useRef} from 'react';
  import {useSelector, useDispatch} from 'react-redux';
  
  import {isCollapsedThreadsEnabled} from 'mattermost-redux/selectors/entities/preferences';
  
  import {resetReloadPostsInChannel} from 'mattermost-redux/actions/posts';
  
  const PostsChannelResetWatcher = () => {
      const dispatch = useDispatch();
      const isCRTEnabled = useSelector(isCollapsedThreadsEnabled);
      const loaded = useRef(false);
      useEffect(() => {
          if (loaded.current) {
              dispatch(resetReloadPostsInChannel());
          } else {
              loaded.current = true;
          }
      }, [isCRTEnabled]);
      return null;
  };
  
  export default PostsChannelResetWatcher;
  