Merge pull request #764 from Bilb/fix-refresh-group-panel-files

refresh files in group in group panel
pull/763/head
Vince 5 years ago committed by GitHub
commit 7debb1a3de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -350,6 +350,8 @@
props: getGroupSettingsProp(this.model),
});
this.$('.conversation-content-right').append(this.groupSettings.el);
} else {
this.groupSettings.update(getGroupSettingsProp(this.model));
}
this.$('.conversation-content-right').show();
};
@ -875,9 +877,7 @@
},
updateScrollDownButton(count) {
if (this.scrollDownButton) {
this.scrollDownButton.increment(count);
} else {
if (!this.scrollDownButton) {
this.scrollDownButton = new Whisper.ScrollDownButtonView({ count });
this.scrollDownButton.render();
const container = this.$('.discussion-container');

@ -49,6 +49,18 @@ export class SessionChannelSettings extends React.Component<Props, any> {
.ignore();
}
public componentDidUpdate() {
this.getMediaGalleryProps()
.then(({ documents, media, onItemClick }) => {
this.setState({
documents,
media,
onItemClick,
});
})
.ignore();
}
public async getMediaGalleryProps() {
// We fetch more documents than media as they dont require to be loaded
// into memory right away. Revisit this once we have infinite scrolling:

Loading…
Cancel
Save