Remove unused window
option from ConversationView constructor
This commit is contained in:
parent
df7f702dde
commit
4805226825
2 changed files with 1 additions and 3 deletions
|
@ -27,7 +27,6 @@
|
||||||
if (id !== this.el.lastChild.id) {
|
if (id !== this.el.lastChild.id) {
|
||||||
const view = new Whisper.ConversationView({
|
const view = new Whisper.ConversationView({
|
||||||
model: conversation,
|
model: conversation,
|
||||||
window: this.model.window,
|
|
||||||
});
|
});
|
||||||
this.listenTo(conversation, 'unload', () =>
|
this.listenTo(conversation, 'unload', () =>
|
||||||
this.onUnload(conversation)
|
this.onUnload(conversation)
|
||||||
|
|
|
@ -350,7 +350,7 @@ Whisper.ConversationView = Whisper.View.extend({
|
||||||
'send-message': window.i18n('sendMessage'),
|
'send-message': window.i18n('sendMessage'),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
initialize(options: any) {
|
initialize() {
|
||||||
// Events on Conversation model
|
// Events on Conversation model
|
||||||
this.listenTo(this.model, 'destroy', this.stopListening);
|
this.listenTo(this.model, 'destroy', this.stopListening);
|
||||||
this.listenTo(this.model, 'change:verified', this.onVerifiedChange);
|
this.listenTo(this.model, 'change:verified', this.onVerifiedChange);
|
||||||
|
@ -414,7 +414,6 @@ Whisper.ConversationView = Whisper.View.extend({
|
||||||
this.loadingScreen.render();
|
this.loadingScreen.render();
|
||||||
this.loadingScreen.$el.prependTo(this.$('.discussion-container'));
|
this.loadingScreen.$el.prependTo(this.$('.discussion-container'));
|
||||||
|
|
||||||
this.window = options.window;
|
|
||||||
const attachmentListEl = $(
|
const attachmentListEl = $(
|
||||||
'<div class="module-composition-area__attachment-list"></div>'
|
'<div class="module-composition-area__attachment-list"></div>'
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue