remove banned topic from view
This commit is contained in:
@@ -591,7 +591,7 @@ class TinodeWeb extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resetContactList() {
|
resetContactList() {
|
||||||
let newState = {
|
const newState = {
|
||||||
chatList: []
|
chatList: []
|
||||||
};
|
};
|
||||||
this.tinode.getMeTopic().contacts((c) => {
|
this.tinode.getMeTopic().contacts((c) => {
|
||||||
@@ -759,6 +759,9 @@ class TinodeWeb extends React.Component {
|
|||||||
topic.setMeta({sub: {user: topicName, mode: 'N'}});
|
topic.setMeta({sub: {user: topicName, mode: 'N'}});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
response = response.then((ctrl) => {
|
||||||
|
this.handleTopicSelected(null);
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.log("Unknown invitation action", '"' + action + '""');
|
console.log("Unknown invitation action", '"' + action + '""');
|
||||||
@@ -1080,7 +1083,7 @@ class TinodeWeb extends React.Component {
|
|||||||
subscribed ? {title: formatMessage({id: 'menu_item_info'}), handler: this.handleShowInfoView} : null,
|
subscribed ? {title: formatMessage({id: 'menu_item_info'}), handler: this.handleShowInfoView} : null,
|
||||||
subscribed ? 'messages_clear' : null,
|
subscribed ? 'messages_clear' : null,
|
||||||
subscribed && deleter ? 'messages_clear_hard' : null,
|
subscribed && deleter ? 'messages_clear_hard' : null,
|
||||||
muted ? 'topic_unmute' : 'topic_mute',
|
muted ? (blocked ? null : 'topic_unmute') : 'topic_mute'),
|
||||||
blocked ? 'topic_unblock' : 'topic_block',
|
blocked ? 'topic_unblock' : 'topic_block',
|
||||||
!archived ? 'topic_archive' : null,
|
!archived ? 'topic_archive' : null,
|
||||||
'topic_delete'
|
'topic_delete'
|
||||||
|
|||||||
+3
-3
@@ -2681,12 +2681,12 @@ var MessagesView = function (_React$Component) {
|
|||||||
|
|
||||||
if (this.state.isReader) {
|
if (this.state.isReader) {
|
||||||
getQuery = getQuery.withLaterData(_config_js__WEBPACK_IMPORTED_MODULE_12__["MESSAGES_PAGE"]).withLaterDel();
|
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;
|
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) {
|
topic.subscribe(getQuery.build(), setQuery).then(function (ctrl) {
|
||||||
if (_this2.state.topic != ctrl.topic) {
|
if (_this2.state.topic != ctrl.topic) {
|
||||||
_this2.setState({
|
_this2.setState({
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user