From 4805226825134477577be819e885fc2262f42fc7 Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Mon, 7 Jun 2021 12:01:05 -0500 Subject: [PATCH] Remove unused `window` option from ConversationView constructor --- js/views/inbox_view.js | 1 - ts/views/conversation_view.ts | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/js/views/inbox_view.js b/js/views/inbox_view.js index 250e36b48..e405bb051 100644 --- a/js/views/inbox_view.js +++ b/js/views/inbox_view.js @@ -27,7 +27,6 @@ if (id !== this.el.lastChild.id) { const view = new Whisper.ConversationView({ model: conversation, - window: this.model.window, }); this.listenTo(conversation, 'unload', () => this.onUnload(conversation) diff --git a/ts/views/conversation_view.ts b/ts/views/conversation_view.ts index e8c561f82..c9dc21015 100644 --- a/ts/views/conversation_view.ts +++ b/ts/views/conversation_view.ts @@ -350,7 +350,7 @@ Whisper.ConversationView = Whisper.View.extend({ 'send-message': window.i18n('sendMessage'), }; }, - initialize(options: any) { + initialize() { // Events on Conversation model this.listenTo(this.model, 'destroy', this.stopListening); this.listenTo(this.model, 'change:verified', this.onVerifiedChange); @@ -414,7 +414,6 @@ Whisper.ConversationView = Whisper.View.extend({ this.loadingScreen.render(); this.loadingScreen.$el.prependTo(this.$('.discussion-container')); - this.window = options.window; const attachmentListEl = $( '
' );