make topic and user deletions "hard"
This commit is contained in:
@@ -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' ?
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user