diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js
index 5aa6b1d2a9..2b48e6cd46 100644
--- a/src/components/structures/GroupView.js
+++ b/src/components/structures/GroupView.js
@@ -312,52 +312,6 @@ export default React.createClass({
if (this.state.summary === null && this.state.error === null) {
return ;
- } else if (false && this.state.editing) {
- const summary = this.state.summary;
- const avatarEdit = (
-
-
-
-
-
-
-
-
-
- );
-
- return
- {avatarEdit}
-
-
-
- {_t('Save')}
-
-
-
-
-
-
;
} else if (this.state.summary) {
const summary = this.state.summary;
@@ -365,6 +319,7 @@ export default React.createClass({
let nameNode;
let shortDescNode;
let rightButtons;
+ let headerBottom;
let roomBody;
if (this.state.editing) {
avatarNode = (
@@ -397,19 +352,20 @@ export default React.createClass({
onChange={this._onShortDescChange}
placeholder={_t('Description')}
/>
- roomBody =
-
-
;
- rightButtons =
-
+ rightButtons =
+
{_t('Save')}
+ ;
+ headerBottom = ;
+ roomBody =
+
;
} else {
const groupAvatarUrl = summary.profile ? summary.profile.avatar_url : null;
@@ -428,14 +384,13 @@ export default React.createClass({
} else {
nameNode = {this.props.groupId};
}
- shortDescNode =
- {summary.profile.short_description}
-
;
+ shortDescNode = {summary.profile.short_description};
let description = null;
if (summary.profile && summary.profile.long_description) {
description = sanitizedHtmlNode(summary.profile.long_description);
}
+ headerBottom = ;
roomBody =
{description}
{this._getFeaturedRoomsNode()}
@@ -466,6 +421,7 @@ export default React.createClass({
{rightButtons}
+ {headerBottom}
{roomBody}
);