fix lint and clean code

pull/764/head
Audric Ackermann 6 years ago
parent 2721b2a477
commit e2921103bd
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -350,12 +350,9 @@
props: getGroupSettingsProp(this.model), props: getGroupSettingsProp(this.model),
}); });
this.$('.conversation-content-right').append(this.groupSettings.el); this.$('.conversation-content-right').append(this.groupSettings.el);
this.$('.conversation-content-right').show(); } else {
this.groupSettings.update(getGroupSettingsProp(this.model));
return;
} }
this.groupSettings.update(getGroupSettingsProp(this.model));
this.$('.conversation-content-right').show(); this.$('.conversation-content-right').show();
}; };

@ -51,14 +51,14 @@ export class SessionChannelSettings extends React.Component<Props, any> {
public componentDidUpdate() { public componentDidUpdate() {
this.getMediaGalleryProps() this.getMediaGalleryProps()
.then(({ documents, media, onItemClick }) => { .then(({ documents, media, onItemClick }) => {
this.setState({ this.setState({
documents, documents,
media, media,
onItemClick, onItemClick,
}); });
}) })
.ignore(); .ignore();
} }
public async getMediaGalleryProps() { public async getMediaGalleryProps() {

Loading…
Cancel
Save