remove banned topic from view

This commit is contained in:
or-else
2019-02-26 16:48:13 +03:00
parent 0ddb3a4f75
commit 173d153b82
5 changed files with 11 additions and 8 deletions
+3 -3
View File
@@ -2681,12 +2681,12 @@ var MessagesView = function (_React$Component) {
if (this.state.isReader) {
getQuery = getQuery.withLaterData(_config_js__WEBPACK_IMPORTED_MODULE_12__["MESSAGES_PAGE"]).withLaterDel();
this.setState({
fetchingMessages: true
});
}
var setQuery = tinode_sdk__WEBPACK_IMPORTED_MODULE_2___default.a.isNewGroupTopicName(this.props.topic) ? this.props.newGroupTopicParams : undefined;
this.setState({
fetchingMessages: true
});
topic.subscribe(getQuery.build(), setQuery).then(function (ctrl) {
if (_this2.state.topic != ctrl.topic) {
_this2.setState({