correctly report topics

This commit is contained in:
or-else
2022-03-19 12:56:32 -07:00
parent 237e97c323
commit 9ddd103ac5
7 changed files with 14 additions and 13 deletions
+1 -4
View File
@@ -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
View File
@@ -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 => {
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+8 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long