fix lint and clean code

pull/764/head
Audric Ackermann 5 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),
});
this.$('.conversation-content-right').append(this.groupSettings.el);
this.$('.conversation-content-right').show();
return;
} else {
this.groupSettings.update(getGroupSettingsProp(this.model));
}
this.groupSettings.update(getGroupSettingsProp(this.model));
this.$('.conversation-content-right').show();
};

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

Loading…
Cancel
Save