diff --git a/ts/background.ts b/ts/background.ts index 3fd96e3898..bd01fb746f 100644 --- a/ts/background.ts +++ b/ts/background.ts @@ -1301,15 +1301,6 @@ export async function startApp(): Promise { } } - // Close window.Backbone-based confirmation dialog - if (window.Whisper.activeConfirmationView && key === 'Escape') { - window.Whisper.activeConfirmationView.remove(); - window.Whisper.activeConfirmationView = null; - event.preventDefault(); - event.stopPropagation(); - return; - } - // Send Escape to active conversation so it can close panels if (conversation && key === 'Escape') { conversation.trigger('escape-pressed'); diff --git a/ts/window.d.ts b/ts/window.d.ts index 3e3b05de9c..a7c7bfc4bf 100644 --- a/ts/window.d.ts +++ b/ts/window.d.ts @@ -503,7 +503,6 @@ export type WhisperType = { deliveryReceiptQueue: PQueue; deliveryReceiptBatcher: BatcherType; events: Backbone.Events; - activeConfirmationView: WhatIsThis; // Backbone views