Skip to content

Commit

Permalink
Remove unused window option from ConversationView constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHahn-Signal committed Jun 7, 2021
1 parent df7f702 commit 4805226
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion js/views/inbox_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions ts/views/conversation_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 = $(
'<div class="module-composition-area__attachment-list"></div>'
);
Expand Down

0 comments on commit 4805226

Please sign in to comment.