archiving kind of works but buggy

This commit is contained in:
or-else
2019-02-03 12:48:47 +03:00
parent 7e30c2acc6
commit fc96d200ed
15 changed files with 308 additions and 130 deletions
+4 -4
View File
@@ -98,7 +98,7 @@ class InfoView extends React.Component {
// No need to separately handle component mount.
componentDidUpdate(props) {
let topic = this.props.tinode.getTopic(props.topic);
const topic = this.props.tinode.getTopic(props.topic);
if (!topic) {
return;
}
@@ -126,7 +126,7 @@ class InfoView extends React.Component {
}
componentWillUnmount() {
var topic = this.props.tinode.getTopic(this.props.topic);
const topic = this.props.tinode.getTopic(this.props.topic);
if (!topic) {
return;
}
@@ -185,7 +185,7 @@ class InfoView extends React.Component {
}
onMetaDesc(desc) {
var topic = this.props.tinode.getTopic(this.props.topic);
const topic = this.props.tinode.getTopic(this.props.topic);
if (!topic) {
return;
}
@@ -197,7 +197,7 @@ class InfoView extends React.Component {
}
onSubsUpdated() {
var topic = this.props.tinode.getTopic(this.props.topic);
const topic = this.props.tinode.getTopic(this.props.topic);
if (!topic) {
return;
}