refresh files in group in group panel

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

@ -350,7 +350,12 @@
props: getGroupSettingsProp(this.model),
});
this.$('.conversation-content-right').append(this.groupSettings.el);
this.$('.conversation-content-right').show();
return;
}
this.groupSettings.update(getGroupSettingsProp(this.model));
this.$('.conversation-content-right').show();
};
@ -875,9 +880,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