Fixed issue with composer destination in group, timeline

• Fixed:
- mobile composer min height
- issue with composer destination in group, timeline (hopefully)
This commit is contained in:
mgabdev
2020-12-31 21:46:31 -05:00
parent 27f1de6af3
commit 89225194ed
4 changed files with 25 additions and 15 deletions

View File

@@ -5,7 +5,6 @@ import { defineMessages, injectIntl } from 'react-intl'
import ImmutablePropTypes from 'react-immutable-proptypes'
import ImmutablePureComponent from 'react-immutable-pure-component'
import { fetchGroup } from '../actions/groups'
import { changeComposeGroupId } from '../actions/compose'
import PageTitle from '../features/ui/util/page_title'
import GroupLayout from '../layouts/group_layout'
import TimelineComposeBlock from '../components/timeline_compose_block'
@@ -16,18 +15,11 @@ import Divider from '../components/divider'
class GroupPage extends ImmutablePureComponent {
componentDidMount() {
if (!this.props.group) {
this.props.dispatch(fetchGroup(this.props.params.id))
}
this.props.dispatch(fetchGroup(this.props.params.id))
}
componentWillUnmount() {
//Reset group composer
this.props.dispatch(changeComposeGroupId(null))
}
componentDidUpdate(prevProps) {
if (!!this.props.group && prevProps.params.id !== this.props.params.id) {
if (prevProps.params.id !== this.props.params.id) {
this.props.dispatch(fetchGroup(this.props.params.id))
}
}
@@ -51,7 +43,7 @@ class GroupPage extends ImmutablePureComponent {
if (!!group) {
if (group.get('archived')) return null
}
return (
<GroupLayout
title={'Group'}