Remove unused activeConfirmationView
This commit is contained in:
parent
f50a6abe36
commit
10a0abb8c2
2 changed files with 0 additions and 10 deletions
|
@ -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
1
ts/window.d.ts
vendored
|
@ -503,7 +503,6 @@ export type WhisperType = {
|
|||
deliveryReceiptQueue: PQueue;
|
||||
deliveryReceiptBatcher: BatcherType<Receipt>;
|
||||
events: Backbone.Events;
|
||||
activeConfirmationView: WhatIsThis;
|
||||
|
||||
// Backbone views
|
||||
|
||||
|
|
Loading…
Reference in a new issue