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.
this.tinode.publish(Tinode.TOPIC_SYS, Drafty.attachJSON(null, {
'action': 'report',
'target': topicName
}));
this.tinode.report('report',topicName);
// Remove J and P permissions.
topic.updateMode(null, '-JP').then((ctrl) => {