Remove unused activeConfirmationView

This commit is contained in:
Evan Hahn 2022-06-06 14:04:16 +00:00 committed by GitHub
parent f50a6abe36
commit 10a0abb8c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 10 deletions

View file

@ -1301,15 +1301,6 @@ export async function startApp(): Promise<void> {
}
}
// 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');

1
ts/window.d.ts vendored
View file

@ -503,7 +503,6 @@ export type WhisperType = {
deliveryReceiptQueue: PQueue;
deliveryReceiptBatcher: BatcherType<Receipt>;
events: Backbone.Events;
activeConfirmationView: WhatIsThis;
// Backbone views