|
|
@ -47,7 +47,8 @@ import {
|
|
|
|
Lists,
|
|
|
|
Lists,
|
|
|
|
} from './util/async-components';
|
|
|
|
} from './util/async-components';
|
|
|
|
import { me } from '../../initial_state';
|
|
|
|
import { me } from '../../initial_state';
|
|
|
|
import { previewState } from './components/media_modal';
|
|
|
|
import { previewState as previewMediaState } from './components/media_modal';
|
|
|
|
|
|
|
|
import { previewState as previewVideoState } from './components/video_modal';
|
|
|
|
|
|
|
|
|
|
|
|
// Dummy import, to make sure that <Status /> ends up in the application bundle.
|
|
|
|
// Dummy import, to make sure that <Status /> ends up in the application bundle.
|
|
|
|
// Without this it ends up in ~8 very commonly used bundles.
|
|
|
|
// Without this it ends up in ~8 very commonly used bundles.
|
|
|
@ -121,7 +122,7 @@ class SwitchingColumnsArea extends React.PureComponent {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
shouldUpdateScroll (_, { location }) {
|
|
|
|
shouldUpdateScroll (_, { location }) {
|
|
|
|
return location.state !== previewState;
|
|
|
|
return location.state !== previewMediaState && location.state !== previewVideoState;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
handleResize = debounce(() => {
|
|
|
|
handleResize = debounce(() => {
|
|
|
|