correctly report topics
This commit is contained in:
@@ -1443,10 +1443,7 @@ class TinodeWeb extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Publish spam report.
|
// Publish spam report.
|
||||||
this.tinode.publish(Tinode.TOPIC_SYS, Drafty.attachJSON(null, {
|
this.tinode.report('report',topicName);
|
||||||
'action': 'report',
|
|
||||||
'target': topicName
|
|
||||||
}));
|
|
||||||
|
|
||||||
// Remove J and P permissions.
|
// Remove J and P permissions.
|
||||||
topic.updateMode(null, '-JP').then((ctrl) => {
|
topic.updateMode(null, '-JP').then((ctrl) => {
|
||||||
|
|||||||
+1
-4
@@ -8948,10 +8948,7 @@ class TinodeWeb extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.tinode.publish(tinode_sdk__WEBPACK_IMPORTED_MODULE_4__.Tinode.TOPIC_SYS, tinode_sdk__WEBPACK_IMPORTED_MODULE_4__.Drafty.attachJSON(null, {
|
this.tinode.report('report', topicName);
|
||||||
'action': 'report',
|
|
||||||
'target': topicName
|
|
||||||
}));
|
|
||||||
topic.updateMode(null, '-JP').then(ctrl => {
|
topic.updateMode(null, '-JP').then(ctrl => {
|
||||||
_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 => {
|
||||||
|
|||||||
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
+8
-1
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