rebuilt
This commit is contained in:
@@ -1428,7 +1428,7 @@ class TinodeWeb extends React.Component {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
topic.updateMode(null, '-JP').then((ctrl) => {
|
topic.updateMode(null, '-JP').then(_ => {
|
||||||
// Hide MessagesView and InfoView panels.
|
// Hide MessagesView and InfoView panels.
|
||||||
HashNavigation.navigateTo(HashNavigation.setUrlTopic(window.location.hash, ''));
|
HashNavigation.navigateTo(HashNavigation.setUrlTopic(window.location.hash, ''));
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
@@ -1443,7 +1443,7 @@ class TinodeWeb extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Publish spam report.
|
// Publish spam report.
|
||||||
this.tinode.report('report',topicName);
|
this.tinode.report('report', topicName);
|
||||||
|
|
||||||
// Remove J and P permissions.
|
// Remove J and P permissions.
|
||||||
topic.updateMode(null, '-JP').then((ctrl) => {
|
topic.updateMode(null, '-JP').then((ctrl) => {
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ class TopicSecurity extends React.PureComponent {
|
|||||||
this.props.onShowAlert(
|
this.props.onShowAlert(
|
||||||
formatMessage(messages.report_chat), // title
|
formatMessage(messages.report_chat), // title
|
||||||
formatMessage(messages.report_chat_warning), // content
|
formatMessage(messages.report_chat_warning), // content
|
||||||
(() => { this.props.onReportTopic(this.props.topic); }), // onConfirm
|
(_ => { this.props.onReportTopic(this.props.topic); }), // onConfirm
|
||||||
null, // "OK"
|
null, // "OK"
|
||||||
true, // Show Reject button
|
true, // Show Reject button
|
||||||
null // "Cancel"
|
null // "Cancel"
|
||||||
|
|||||||
+2
-2
@@ -9093,7 +9093,7 @@ class TinodeWeb extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
topic.updateMode(null, '-JP').then(ctrl => {
|
topic.updateMode(null, '-JP').then(_ => {
|
||||||
_lib_navigation_js__WEBPACK_IMPORTED_MODULE_16__["default"].navigateTo(_lib_navigation_js__WEBPACK_IMPORTED_MODULE_16__["default"].setUrlTopic(window.location.hash, ''));
|
_lib_navigation_js__WEBPACK_IMPORTED_MODULE_16__["default"].navigateTo(_lib_navigation_js__WEBPACK_IMPORTED_MODULE_16__["default"].setUrlTopic(window.location.hash, ''));
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.handleError(err.message, 'err');
|
this.handleError(err.message, 'err');
|
||||||
@@ -16126,7 +16126,7 @@ class TopicSecurity extends (react__WEBPACK_IMPORTED_MODULE_0___default().PureCo
|
|||||||
const {
|
const {
|
||||||
formatMessage
|
formatMessage
|
||||||
} = this.props.intl;
|
} = this.props.intl;
|
||||||
this.props.onShowAlert(formatMessage(messages.report_chat), formatMessage(messages.report_chat_warning), () => {
|
this.props.onShowAlert(formatMessage(messages.report_chat), formatMessage(messages.report_chat_warning), _ => {
|
||||||
this.props.onReportTopic(this.props.topic);
|
this.props.onReportTopic(this.props.topic);
|
||||||
}, null, true, null);
|
}, null, true, null);
|
||||||
}
|
}
|
||||||
|
|||||||
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
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user