make topic and user deletions "hard"

This commit is contained in:
or-else
2020-04-15 09:45:49 +03:00
parent 6be7b87173
commit c0a3ba6a92
9 changed files with 57 additions and 33 deletions
-1
View File
@@ -172,7 +172,6 @@ class SidepanelView extends React.Component {
onCredDelete={this.props.onCredDelete}
onCredConfirm={this.props.onCredConfirm}
onBasicNavigate={this.props.onBasicNavigate}
onCancel={this.props.onCancel}
onError={this.props.onError} /> :
view === 'notif' ?
+2 -2
View File
@@ -799,7 +799,7 @@ class TinodeWeb extends React.Component {
break;
case 'delete':
// Ignore invitation by deleting it.
response = topic.delTopic();
response = topic.delTopic(true);
break;
case 'block':
// Ban the topic making futher invites impossible.
@@ -1130,7 +1130,7 @@ class TinodeWeb extends React.Component {
}
handleDeleteAccount() {
this.tinode.delCurrentUser().then((ctrl) => {
this.tinode.delCurrentUser(true).then((ctrl) => {
this.handleLogout();
});
}
+1 -1
View File
@@ -198,7 +198,7 @@ class ContextMenu extends React.Component {
console.log("Topic not found: ", params.topicName);
return;
}
return topic.delTopic().catch((err) => {
return topic.delTopic(true).catch((err) => {
if (errorHandler) {
errorHandler(err.message, 'err');
}