diff --git a/js/background.js b/js/background.js index dcf9ccff3..b5c0d05da 100644 --- a/js/background.js +++ b/js/background.js @@ -987,16 +987,6 @@ } }); - Whisper.events.on('showConfirmationDialog', options => { - if ( - appView && - appView.inboxView && - appView.inboxView.conversation_stack - ) { - appView.inboxView.conversation_stack.showConfirmationDialog(options); - } - }); - Whisper.events.on('showNicknameDialog', options => { if (appView) { appView.showNicknameDialog(options); diff --git a/js/views/conversation_view.js b/js/views/conversation_view.js index eb28a54f0..bef9b1c89 100644 --- a/js/views/conversation_view.js +++ b/js/views/conversation_view.js @@ -936,27 +936,6 @@ } }, - destroyMessages() { - const message = this.model.isPublic() - ? i18n('deletePublicConversationConfirmation') - : i18n('deleteConversationConfirmation'); - - Whisper.events.trigger('showConfirmationDialog', { - message, - onOk: async () => { - try { - await this.model.destroyMessages(); - this.unload('delete messages'); - } catch (error) { - window.log.error( - 'destroyMessages: Failed to successfully delete conversation', - error && error.stack ? error.stack : error - ); - } - }, - }); - }, - showSendConfirmationDialog(e, contacts) { let message; const isUnverified = this.model.isUnverified(); diff --git a/js/views/inbox_view.js b/js/views/inbox_view.js index bb0c7adb5..01ca30cd3 100644 --- a/js/views/inbox_view.js +++ b/js/views/inbox_view.js @@ -30,23 +30,6 @@ $el.remove(); } }, - showConfirmationDialog({ - title, - message, - messageSub, - onOk, - onCancel, - hideCancel, - }) { - window.confirmationDialog({ - title, - message, - resolve: onOk, - reject: onCancel, - hideCancel, - messageSub, - }); - }, setupSessionConversation() { // Here we set up a full redux store with initial state for our Conversation Root